Jump to content

how to debug compiled script ?


Recommended Posts

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 !

Link to comment
Share on other sites

  • Developers

Use au3stripper with option /mo to merge all source into one file giving you the appropriate line.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • 4 weeks later...

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

 

Link to comment
Share on other sites

  • Moderators

Iczer,

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

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...