Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: CBL_DEBUGBREAK

$
0
0

You can also use conditional compilation so that the statement is included in the compile only if a particular constant is set in that configuration.

So if you used:

          display "in test"

      $if DEBUG = 1    

          call "CBL_DEBUGBREAK"

      $end    

          display "after break"

          accept any-key

          goback.

And in your Debug Configuration you added the directive:

CONSTANT DEBUG(1)

And in your Release Configuration you added the directive:

CONSTANT DEBUG(0)

Then the statements between the $if and the $end would only be compiled when the debug configuration was in effect.


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>