1. Ranjiv Sharma
  2. PowerBuilder
  3. Monday, 14 February 2022 10:44 AM UTC

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.

René Ullrich Accepted Answer Pending Moderation
  1. Monday, 14 February 2022 11:16 AM UTC
  2. PowerBuilder
  3. # 1

Try

start session
set debug false
...

in your orc file.

 

Comment
  1. Ranjiv Sharma
  2. Monday, 14 February 2022 12:27 PM UTC
Hi,



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.
  1. Helpful
  1. René Ullrich
  2. Monday, 14 February 2022 12:31 PM UTC
Yes. Seems there are no (documented) Orca flags for trace information and error context information options.
  1. Helpful 1
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.