6 Replies Last post: Sep 13, 2005 10:50 PM by Maxim Shafirov (JetBrains)  
Vincent Fischer Newbie 10 posts since
Jan 13, 2003
Currently Being Moderated

Sep 2, 2005 12:24 AM

Displaying XML in Debug

I'd like to display an XML Node/Element (org.w3c.dom.Node) as a string in the Debug Frame. Any tips on how to do that?

 

Thanks.

Guest
Currently Being Moderated
Sep 12, 2005 10:30 PM in response to: Vincent Fischer
Re: Displaying XML in Debug

Settings|Debugger|Type Renderers

 

-


Maxim Shafirov

http://www.jetbrains.com

"Develop with pleasure!"

 

<bump>

 

Anyone know how to display the XML Node/Element object as a string in

the Debug Frame or Watches window? In Eclipse, it was pretty easy, as

I could just specify a code fragment to convert to a String. In Idea,

it seems you can only specify a single line....

 

 

 

 

Guest
Currently Being Moderated
Sep 12, 2005 11:14 PM in response to: Maxim Shafirov (JetBrains)
Re: Displaying XML in Debug

Maxim Shafirov (JetBrains) wrote:

Settings|Debugger|Type Renderers

 

Not quite. I don't know of a way how to transform an org.w3c.dom.Node into a String using

a single expression without any custom utility function. The request to allow arbitrary

code fragments seems reasonable.

 

Sascha

 

Guest
Currently Being Moderated
Sep 13, 2005 10:02 PM in response to: Sascha Weinreuter
Re: Displaying XML in Debug

Yep, indeed this sounds reasonable while I still suggest using utility code

from the application being debugged. This is just far more effective since

we only will be forced to evaluated single method call on target machine

while in case of large code fragments it will behaive like interpretator

passing required parameters and evaluation results back and forth from debugee

to debugger.

-


Maxim Shafirov

http://www.jetbrains.com

"Develop with pleasure!"

 

Maxim Shafirov (JetBrains) wrote:

 

>> Settings|Debugger|Type Renderers

>>

Not quite. I don't know of a way how to transform an org.w3c.dom.Node

into a String using a single expression without any custom utility

function. The request to allow arbitrary code fragments seems

reasonable.

 

Sascha

 

 

 

 

Guest
Currently Being Moderated
Sep 13, 2005 10:18 PM in response to: Maxim Shafirov (JetBrains)
Re: Displaying XML in Debug

Maxim Shafirov (JetBrains) wrote:

Yep, indeed this sounds reasonable while I still suggest using utility

code from the application being debugged. This is just far more

effective since we only will be forced to evaluated single method call

on target machine while in case of large code fragments it will behaive

like interpretator passing required parameters and evaluation results

back and forth from debugee to debugger.

 

No doubt about the bad performance, but I wonder if such fragments could be pre-compiled

and hot-swapped into the target VM? This might also make complex conditional breakpoint

conditions a bit faster.

 

Sascha

 

Guest
Currently Being Moderated
Sep 13, 2005 10:50 PM in response to: Sascha Weinreuter
Re: Displaying XML in Debug

Yes and no. Technically possible for local debugs and not possible for remote

debugs and stuffs like appservers and cell-phone emulators.

-


Maxim Shafirov

http://www.jetbrains.com

"Develop with pleasure!"

 

Maxim Shafirov (JetBrains) wrote:

 

>> Yep, indeed this sounds reasonable while I still suggest using

>> utility code from the application being debugged. This is just far

>> more effective since we only will be forced to evaluated single

>> method call on target machine while in case of large code fragments

>> it will behaive like interpretator passing required parameters and

>> evaluation results back and forth from debugee to debugger.

>>

No doubt about the bad performance, but I wonder if such fragments

could be pre-compiled and hot-swapped into the target VM? This might

also make complex conditional breakpoint conditions a bit faster.

 

Sascha

 

 

 

 

More Like This

  • Retrieving data ...