Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 23-Nov-2010 01:43:23

kenshin1987
Member
Registered: 10-Nov-2010
Posts: 100

How to debug Scol code?

Hi,guys

How to debug Scol code?

Offline

#2 23-Nov-2010 02:00:13

Nodrev
Scol Language & OS3D developer
From: Nantes, France
Registered: 29-Dec-2009
Posts: 197

Re: How to debug Scol code?

Haha, you can't !!!

No, seriously, first you have to activate the scol Log: Scol Voyager, right click on the notification icon, select Configure/Advanced (not sure of the labels, me and arkeon have done so many modifications to SO3 that even ScolVoyager refuse to run for the moment), and set:

log yes
?level? ffff

There another option useful, "do not close scol window when exiting", but didn't remember where the hell it's in Scol Voyager...

With the log in the console plus the log file (in C:\Users\%AccountName%\AppData\Local\Scol Voyager\Logs), you will have some useful informations about your error.
But, if you want something like visual studio debugger, it not possible. Like in javascript, in last resort, use log text functions or dialog box functions to show your variables values.

Offline

#3 23-Nov-2010 04:00:18

kenshin1987
Member
Registered: 10-Nov-2010
Posts: 100

Re: How to debug Scol code?

thank you ,Nodrev

But,I see some debug flag in the kernel project.

what is the function of that?

Offline

#4 23-Nov-2010 09:09:01

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: How to debug Scol code?

Hi,

Some flags exist ... hmm

You should define (#define) them in (by example) kernel/include/vscol.h and (re)compile Scol.

Flags are the most currents : INCLUDE_DEBUGGER and RELEASE_DEVELOPER

Offline

#5 23-Nov-2010 09:14:02

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: How to debug Scol code?

To Nodrev, "do not close scol window when exiting"  is an option in Setup > Maintenance : Enable developper mode

smile

Offline

Board footer

Powered by FluxBB