Jump to content
tonycst

how to debug compiled script ?

Recommended Posts

tonycst

If script has no built in log or is already compiled, if there is a crash, it will say what line crash has accrued, but that line number does not reflect the line number in the editor.

How do i go about finding out what line of code caused the crash if script is compiled ?

Thanks !

Share this post


Link to post
Share on other sites
tonycst

Ah thanks !

Needed to enable the stripper and add /soi to the parameter.

It creates backup of the script as well as one for debugging with every source file in it.

Edited by tonycst

Share this post


Link to post
Share on other sites
Jos

Your script doesn't change, rather a new scriptfile is created by au3stripper which contains the same script as created by aut2exe.

When that is not the case you need to show me the SciTE outputpane information when running   au3stripper.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Iczer

sorry for invade this thread, but where/how au3stripper search for includes?

My problem is - au3stripper with /mo option fail to find many, mostly original, #Include <> while other includes are found OK. AU3Check in the same time runs without errors.

In SCiTe console I get :

>Running AU3Check (3.3.14.0)  params:-d -w 1 -w 2 -w 3 -w- 4 -w 6 -w 7  from:C:\Program Files (x86)\AutoIt3  input:E:\Program Files\Auto-it scripts\AM\AM.au3
+>18:27:02 AU3Check ended.rc:0
>Running Au3Stripper (16.612.1119.0)  from:C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper cmdline:
!==> *** ERROR: include file not found :#Include <APIConstants.au3>
!==> *** ERROR: include file not found :#include <Array.au3>
!==> *** ERROR: include file not found :#include <ButtonConstants.au3>
!==> *** ERROR: include file not found :#include <ComboConstants.au3>
!==> *** ERROR: include file not found :#include <Constants.au3>
... 
and so on
...
+> 0 Au3Stripper v16.612.1119.0 finished merging 58280 lines of code, stripped 19030 comment lines and Merged 1844 Continuation lines.
+>        Created:E:\Program Files\Auto-it scripts\AM\AM_stripped.au3 with 37406 lines.
+>18:27:06 Au3Stripper ended.rc:0

 

Share this post


Link to post
Share on other sites
Melba23

Iczer,

Do you have a standard AutoIt install or have you customized it in some way?

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Iczer

hmm... some entires in SCiTe Tools menu and additions to default path in registry

[HKEY_CURRENT_USER\Software\AutoIt v3\AutoIt]
"Include"="many custom UDF paths with overal len ~ 1700 symbols"

 

Share this post


Link to post
Share on other sites
Iczer

well... bump...

Share this post


Link to post
Share on other sites
Melba23

Iczer,

You have 1700 characters of various include paths? I would call that pretty non-standard!

Seriously, you will have to wait until Jos can take a look as this thread - which might be a while as he is on holiday at the moment - so please be patient.

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Jos

Run it with the /debug option so the au3stripper.log is created and zip that and send it to me. Also properly show the whole string containing the paths for includes so I can have a look to see what is happening ( in about 2 weeks ;) )

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×