Page 1 of 1

[Implemented] CompilerIf #PB_Debug

Posted: Mon Jan 09, 2006 2:42 pm
by Rescator
CompilerIf #PB_Debug

Could this compiler directive be supported?
So that alternate code could be used in those cases
where debug mode or IDE runned causes path etc. issues?

Particulary in cases where GetModuleFileName_() etc. is used and thus returns different results compared to the "finished" compiled program.

Posted: Mon Jan 09, 2006 2:57 pm
by DarkDragon
Yes that would be very good. And maybe something like "CompilerIf #PB_Executable" for if it is created through the menupoint "Create Executable...", because I don't debug everytime my program ;) . Sometimes the debugger is off.

Re: CompilerIf #PB_Debug

Posted: Mon Jan 09, 2006 2:57 pm
by Kale
Rescator wrote:CompilerIf #PB_Debug

Could this compiler directive be supported?
So that alternate code could be used in those cases
where debug mode or IDE runned causes path etc. issues?

Particulary in cases where GetModuleFileName_() etc. is used and thus returns different results compared to the "finished" compiled program.
Maybe clearer to have:

Code: Select all

CompilerIf #PB_Debugger_Enabled
...

Posted: Mon Jan 09, 2006 3:34 pm
by blueznl
perhaps in v4, dunno, but until then some workaround's: japbe, codecaddy, purebuilder