NO

Author Topic: program tracing  (Read 3410 times)

AndruXo

  • Guest
program tracing
« on: September 18, 2009, 07:54:25 AM »
Can anybody to explain how is it to trace my program in Pelles. I mean step by step,  like Builder C++ do it. Debugging (F5) it's not I need. There is some assembler code I don't know it.
Thanks.

PS. sorry for bad English )

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2096
Re: program tracing
« Reply #1 on: September 20, 2009, 07:00:40 AM »
Have you read the help POIDE->DEBUGGING?
To high-level debug (source level) you have to include debugging info in the EXE.
It is better to be hated for what you are than to be loved for what you are not. - Andre Gide

AndruXo

  • Guest
Re: program tracing
« Reply #2 on: September 21, 2009, 09:06:04 AM »
I've read the manual. There is some parameter "/p " for command POIDE that "specifies the IDE should start the debugger and attach to the running process identified by the pid". Are you meaning that?
So, it is necessary to build programm, then run it and execute something like that:
poide.com c:\pellesc\projects\picturedb /p 3386  ??? And what is next?
Explain what exactly to do, please.

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: program tracing
« Reply #3 on: September 21, 2009, 06:10:55 PM »
First from help:

To be able to debug an executable it must contain debug information; see Compiler project options, Assembler project options, and Linker project options.

There is an add-in sample in the Add-In SDK, available from the download page, that helps you automate the task of switching between a debug build (with debug information), and a release build (without debug information).

So install Add-Ins if it isn't installed.
Select from menu Tools -> Customize
From Add-Ins tab  select Switch between debug build, release and profile build Add-In

Or from menu Project -> Project options...
Compiler tab: Debug information: full
Linker tab: Debug information: CodeView & COFF format

Then compile project.

Then use F9 function key to set breakpoint
Run program with F5 function key




 
May the source be with you

AndruXo

  • Guest
Re: program tracing
« Reply #4 on: September 22, 2009, 01:24:18 PM »
It is contained in help as you said. I am really blind. Thank timovjl, frankie for your patience ::).
Grateful so much.