Jump to content

Recommended Posts

Posted

Is it possible to get autoit to stop or error out on every minor warning or error? Like lets say it can't access a file.. instead of just continuing, forcing a quit or a warning? I want to debug my program and when I initially wrote my massive and bloated program I didn't include much in the way of error catching.. Is there a trigger of some sort that I can add so it runs in 'stop on EVERY error or failure mode'?

Posted

No. Just add sensible error handling.

  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Posted (edited)

Not all errors mean that you must exit internal function to main loop.
Some @error could mean that you need to repeat the same function for example:

$ADO_ERR_RECORDSETEMPTY, _ ;        The Recordset is Empty
        $ADO_ERR_NOCURRENTRECORD, _ ;       The Recordset has no current record

which mean that SQL Execute was performed correctly but without any row results.

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

I'm confused.. what does SQL have to do with all this? And yes, I know that for different errors I will want to trigger different effects but I was hoping to kinda 'catch' them all. No worries :) Thanks though.

  • Moderators
Posted

And with proper error handling you will catch the majority. If your goal is to capture every possible error that could happen in any given scenario, might as well shoot yourself now and save yourself the headache.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted
  On 5/23/2019 at 9:00 PM, BatMan22 said:

I'm confused.. what does SQL have to do with all this? And yes, I know that for different errors I will want to trigger different effects but I was hoping to kinda 'catch' them all. No worries :) Thanks though.

Expand  

Well, when you have discovered the hammer function, every problem is a nail...

Posted
  On 5/23/2019 at 10:03 PM, JLogan3o13 said:

And with proper error handling you will catch the majority. If your goal is to capture every possible error that could happen in any given scenario, might as well shoot yourself now and save yourself the headache.

Expand  

Wait a second.. are you telling me perfection ISN'T possible? 

Posted
  On 5/24/2019 at 7:58 AM, RTFC said:

Any sufficiently complex algorithm will contain bugs that cannot be anticipated

Expand  

Well, until code is produced by a serious formal method.

https://www.cambridge.org/fr/academic/subjects/computer-science/programming-languages-and-applied-logic/b-book-assigning-programs-meanings?format=PB&isbn=9780521021753

  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

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
  • Recently Browsing   0 members

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