Hi,
I am using ORCASCRIPT to do a build, how i disable the /pbdebug option on the EXE ?
From Help:
To generate PBDebug trace information:
Invoke the executable file using the /pbdebug command-line switch:
EXEFILE /pbdebug
As the application executes, PowerBuilder records the trace output in a file called exefile.dbg, which is a text file that you can read in any editor. For information about PBDebug tracing in the development environment, see Generating a trace file without timing information.
Enabling tracing
If you are compiling machine code, you must enable tracing at compile time by selecting Trace Information in the Project painter Compile Options group. If you have not enabled tracing when you compile for machine code, no trace information is generated and the /pbdebug switch has no effect.
If you compile your project in Pcode, the compiler automatically adds the information needed to enable tracing.
My example:
Cms.orc
BUILD executable "C:\GUI Build Area\CMS\cms.exe" "C:\GUI Build Area\CMS\Euroclear swirl white.ico" "" "YYYYYYYYYYYYYYYYYY" machinecode
C:\Program Files (x86)\Appeon\shared\PowerBuilder\orcascr170.exe" cms.orc "/tr n"
The above does not work how should i use the /tr option or is there another way to disable the tracing.
Thanks,
R.
I tried that but it still created cms.dbg.
I also read from help files:
If you add a build application command or a regenerate command after the set debug command, the script inside DEBUG conditional compilation blocks will be enabled.
This is to do with the DEBUG preprocessor commands.
Thanks,
Ranjiv.