Debug question!
> Maybe you could use DbgPrint and DebugView
Why? Too much work when my macro solves the problem perfectly.
It still allows Debugs to work but doesn't include any of the code in
the final executable; not even imports as Freak said.
Why? Too much work when my macro solves the problem perfectly.
It still allows Debugs to work but doesn't include any of the code in
the final executable; not even imports as Freak said.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
> how to debug the debugger.
There is a good reason why the debugger can debug itself. Helped us avoid a lot of trouble.
We can even use the 32bit debugger to debug the 64bit one and vice versa
That said, this was actually a compiler problem, not a debugger one
There is a good reason why the debugger can debug itself. Helped us avoid a lot of trouble.
We can even use the 32bit debugger to debug the 64bit one and vice versa
That said, this was actually a compiler problem, not a debugger one
quidquid Latine dictum sit altum videtur
Re: Debug question!
Hello,
I'm glad I found this fitting topic to ask a small Debug question!
After creating an XML and applying a handful of nodes and I can save the whole creation as a file, but I would like to view the XML-code directly without the indirect way of producing an external file. How does one grab the contents behind an adress ?
xml = CreateXML(#PB_Any)
create several nodes + items
Debug "the contents behind the adressID of xml" ?
greetings ~ Vera
I'm glad I found this fitting topic to ask a small Debug question!
After creating an XML and applying a handful of nodes and I can save the whole creation as a file, but I would like to view the XML-code directly without the indirect way of producing an external file. How does one grab the contents behind an adress ?
xml = CreateXML(#PB_Any)
create several nodes + items
Debug "the contents behind the adressID of xml" ?
greetings ~ Vera
Two growing code-collections: WinApi-Lib by RSBasic ~ LinuxAPI-Lib by Omi
Missing a download-file on the forums? ~ check out this backup page.
Missing a download-file on the forums? ~ check out this backup page.
Re: Debug question!
This makes me really sad, that there is not the slightest attempt to help me out of this dilemma, not knowing where PB adresses/memorizes various informations and which maybe classical ways to get hold of them.
Even if it is impossible to attain certain allocated string-datas for further processing it would be helpful to know this as a fact and how one could work around it.
Even if it is impossible to attain certain allocated string-datas for further processing it would be helpful to know this as a fact and how one could work around it.
Two growing code-collections: WinApi-Lib by RSBasic ~ LinuxAPI-Lib by Omi
Missing a download-file on the forums? ~ check out this backup page.
Missing a download-file on the forums? ~ check out this backup page.
Re: Debug question!
Vera Vera... just a day has passed, are you not exaggerating a little?
Last edited by blueznl on Sat Nov 27, 2010 11:19 pm, edited 1 time in total.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Re: Debug question!
Try ExportXML().
No comment.Vera wrote:This makes me really sad, that there is not the slightest attempt to help me out of this dilemma, not knowing where PB adresses/memorizes various informations and which maybe classical ways to get hold of them.
quidquid Latine dictum sit altum videtur
Re: Debug question!
Or, if you only want to read it then you can use:
Code: Select all
xml = CreateXML(#PB_Any)
;create several nodes + items
ShowLibraryViewer("xml",xml)
CallDebuggerRe: Debug question!
Two days and proceeded to page 3 and many have regarded this posting and none of them bothered to give a short hint. Nobody would come back days later to leave a note.blueznl wrote:Vera Vera... just a day has passed, are you not exaggerating a little?
Even you prefer to keep it unanswered.
Exactely what I told you about twice already - making friendly requests will be neglected although maybe a single word could give an answer.freak wrote:No comment.Vera wrote:This makes me really sad, that there is not the slightest attempt to help me out of this dilemma, not knowing where PB adresses/memorizes various informations and which maybe classical ways to get hold of them.
Try ExportXML().
tried -
but unfortunately this even leads me into more confusion as it needs to handle AllocateMemory() as well. It also seems an indirect route, as the string data already exists. It would be as indirect as re-reading is from a created file.
thanks - I haven't come across this tool yet, and give it a closer look later on. On first glance I see it does not show me the plain xml-code but gives me the opportunity to check the tree - nice to know.cas wrote:Or, if you only want to read it then you can use:Code: Select all
ShowLibraryViewer("xml",xml) CallDebugger
Maybe it's simply impossible what I want but if this command
SaveXML(xml, "new.xml")
writes a single string into a file then why can't I resolve this 'already memorized' string of text as a string, so that I could e.g. debug it or show it in an explorer gadget or process it otherwise?
greetings ~ Vera
Two growing code-collections: WinApi-Lib by RSBasic ~ LinuxAPI-Lib by Omi
Missing a download-file on the forums? ~ check out this backup page.
Missing a download-file on the forums? ~ check out this backup page.
Re: Debug question!
Vera, this forum is by primarily by and for hobby users and volunteers. I cannot force, or even expect, other forum users to give an answer. I cannot even be angry about it, disappointed, or outright in tears
if they do not answer me. It's their free choice...
Perhaps nobody is in the mood to answer a particular question, perhaps they're all teaming up to frustrate you (hey, not being paranoid doesn't mean they're not out there to get you!
), perhaps X-mas is looming near and people had to choose between typing up that word shattering life improving answer to all questions reply, and carrying the wife's shopping.
I don't know.
Take it easy. Some of my questions were not answered for ages either... and look how brilliant I have become
Thanks to all those non-replies I had to figure it out myself, and now I'm definitely settled and on my way to world domination, and all those non-replying forum members will become my slaves, mowhahahahahahahaargh... excuse me, peanut (cough).
Perhaps nobody is in the mood to answer a particular question, perhaps they're all teaming up to frustrate you (hey, not being paranoid doesn't mean they're not out there to get you!
I don't know.
Take it easy. Some of my questions were not answered for ages either... and look how brilliant I have become
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Re: Debug question!
I am quite confident when I say that the string data does not exist. The xml library very likely handles the xml file not as a string, but rather as a tree structure, where each node is allocated as a separate memory area.Try ExportXML().
tried -
but unfortunately this even leads me into more confusion as it needs to handle AllocateMemory() as well. It also seems an indirect route, as the string data already exists.
Since you asked so politely, here's one simple way to use ExportXML() to get a string:
Code: Select all
Procedure.s XmlToString(xml)
Protected Size = ExportXMLSize(xml)
Protected Value.s = Space(Size)
ExportXML(xml, @Value, Size)
ProcedureReturn Value
EndProcedureRe: Debug question!
People have a life, you know. Not everybody is waiting just to answer your questions.Vera wrote:Exactely what I told you about twice already - making friendly requests will be neglected although maybe a single word could give an answer.freak wrote:No comment.Vera wrote:This makes me really sad, that there is not the slightest attempt to help me out of this dilemma, not knowing where PB adresses/memorizes various informations and which maybe classical ways to get hold of them.
If you can't even show a little patience then even less people will make the effort to help you.
quidquid Latine dictum sit altum videtur




