Debugging in CodeWarrior - Getting rid of stepping thru aseembly code?

Login to reply to this topic.
Sun, 2005-08-28 07:16
Joined: 2005-04-12
Forum posts: 58
Hi,

New to 3GL/Symb C++ and for my application, need to debug step by step. My applicrashes and need to know the line casuing the crash. When i set breakpoint and run in debug debug mode, it goes into the assembly level coding and i am getting lost.

If i need to debug like in 4GL, how can i do that in CodeWarrior? When i step thru the code, it is supposed to go thru the code i have code and not the assembly. How can i do that in CodeWarrior?

Thanks in advance for the help,
Peri


Sun, 2005-08-28 11:44
Joined: 2005-06-13
Forum posts: 68
Re: Debugging in CodeWarrior - Getting rid of stepping thru asee
That's because you are not setting the break point early enough.  Also if you made a mistake like forgetting to pop the cleanup stack or popping it when nothing is there or some form of object slicing, then you are going to end up staring at the assembler.

As soon as your Evil line of code is executed you are going to be taken straight to the specific assembly instruction that broke everything.

Actually maybe you are setting your break point right and it might be something as trivial as you not running the winscw udeb code but the winscw urel code.

Hope that helped.

If we fall down it's so we can learn to pick ourselves up.

Sun, 2005-08-28 15:37
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 2009
Re: Debugging in CodeWarrior - Getting rid of stepping thru asee
It looks like in normal operations, Codewarrior shows the assembly code when you enter a call for which you don't have the source code (normally all system calls). I do not know how to get rid of this. You can always try the "Jump out" instruction that should terminate the assembly execution and bring you bask to your source code.

Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Sun, 2005-08-28 17:29
Joined: 2005-06-13
Forum posts: 68
Re: Debugging in CodeWarrior - Getting rid of stepping thru asee
Yeah that's what it should do Wink.  However I've never seen it work how it should work.

If we fall down it's so we can learn to pick ourselves up.

Mon, 2005-08-29 02:19
Joined: 2005-04-12
Forum posts: 58
Re: Debugging in CodeWarrior - Getting rid of stepping thru asee
Thanks, nikolas and eric.

Regards,
Peri

  • Login to reply to this topic.