PDA

View Full Version : Question: Is there a symbol for debug mode?



NewsArchive
02-26-2010, 03:25 AM
Hi Friedrich,

is there a symbol for the Debug Mode (screenshot)?

This would made a simple possibility to add additional debug outputs,
such as message boxes.

I know, I can define this symbol myself, it's just a suggestion.

And if I think further and with a look at our Automation Build System
"Final Builder", It would be nice to have a "condition" property in
every script item which cause that this script item is only compiled, if
the given symbol(s) is defined. Or, as an alternative, a CheckBox or
ComboBox "only compile when Debug Mode Minimum / Full.

Markus

NewsArchive
02-26-2010, 03:26 AM
Hi Markus,

> is there a symbol for the Debug Mode (screenshot)?
>
> This would made a simple possibility to add additional debug outputs,
> such as message boxes.
>
> I know, I can define this symbol myself, it's just a suggestion.

In our internal version, we have a DEBUGMODE "Generator Flag" (we are using
this for years to add additional debug stuff).

We have enabled this capability in the public version now. The following
will be possible in the next build:

#ifdef SB_GENERATORFLAG Equals "$DEBUGMODE$" Then
! Debug Mode is ON
#end

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is Windows 7 installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
07-15-2010, 01:52 AM
Hi Friedrich,

I still can't find it.

Markus

NewsArchive
07-15-2010, 01:53 AM
The constant (whatever it is) does not seem to be in the Common
Definitions.sbi file.

Jane Fleming

NewsArchive
07-15-2010, 01:53 AM
Hi Jane,

we talked about a symbol (#def, #ifdef), not about a constant.

Markus

NewsArchive
07-15-2010, 01:54 AM
Markus,

I tried what Friedrich had posted:

We have enabled this capability in the public version now. The
following
will be possible in the next build:

#ifdef SB_GENERATORFLAG Equals "$DEBUGMODE$" Then
! Debug Mode is ON
#end

Friedrich

But you can't use it because the $DEBUGMODE$ constant is not defined.

My screen shot is trying to do what Friedrich wrote. It does not compile
because of the undefined constant.

jf

NewsArchive
07-15-2010, 01:55 AM
Hi Jane,

Yes, you are right. The $DEBUGMODE$ constant is not defined in the current
build.

The above enhancement did not make it into the public build yet. I think it
failed in a regression test and the status is still "OPEN". I will to check
what the problem was to make sure it will make it into the next build.

Friedrich

NewsArchive
07-15-2010, 01:55 AM
Hi Jane,

I'm Sorry, you are right. I didn't read the instructions from friedrich
carefully. I try to read all details next time.

Markus

NewsArchive
10-21-2010, 01:08 AM
Hi Friedrich,

the $DEBUGMODE$-Symbol is defined, but it seems not to work as expected.

See attached Screenshots.

Why?

Markus

NewsArchive
10-21-2010, 01:09 AM
Hi Markus,

> the $DEBUGMODE$-Symbol is defined, but it seems not to work as expected.
>
> See attached Screenshots.
>
> Why?

You have to use 'Equals "1" on Position'

#ifdef SB_GENERATORFLAG Equals "1" on Position "$DEBUGMODE$" Then

Friedrich

NewsArchive
10-21-2010, 01:10 AM
Thank you. It works now.

Markus

NewsArchive
10-21-2010, 01:10 AM
>
> Thank you. It works now.
>

Perfect. Thank YOU!

Friedrich