As I sometimes have a problem tracking down a crashing error, due to the crash report isn't designed for "mortals"
Crash report -> Code line number
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
Please try to follow these guidelines. This will help to receive faster and more accurate response.
- Check the Support section of the corresponding product first. Chances are you will find your answer there;
- Do not create new topics for already reported problems. Add your comments to the existing topics instead;
- Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
- Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
- Include the version number of the software you are using;
- This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Crash report -> Code line number
Is there any way to "translate" the WeBuilder crash report into a code line number?
As I sometimes have a problem tracking down a crashing error, due to the crash report isn't designed for "mortals"
As I sometimes have a problem tracking down a crashing error, due to the crash report isn't designed for "mortals"
There are 10 types of people in the world: Those who understand binary and those who don't.
Re: Crash report -> Code line number
Unfortunately FastScript doesn't make it easy. The closest thing to finding the problem is to put the suspicious blocks in try..except like so:
But it does not give the line number. To get the line number, too, I would have to crack open the FastScript library but that makes upgrading and future maintenance more difficult. Maybe at some point.
Code: Select all
try {
B = nil; //make it crash deliberately
B.SetSize(10, 10);
} except {
alert(ExceptionClassName + "\n" + ExceptionMessage);
}
Blumentals Software Programmer
Re: Crash report -> Code line number
The problem is that I don't know what part of the code it is that is crashing. Im not even sure it's my code as the crashes is not consistent. (It's my most complex plugin to date so it's bound to crash during development.)
It might be a Beta 5 problem that is causing the crashes I get at the moment, but Im not sure. (I don't want to spam you with unnecessary 2018 beta bugreports)
It might be a Beta 5 problem that is causing the crashes I get at the moment, but Im not sure. (I don't want to spam you with unnecessary 2018 beta bugreports)
There are 10 types of people in the world: Those who understand binary and those who don't.
Re: Crash report -> Code line number
This wasn't easy but I managed to add code line numbers to crash report without changing the scripting library. In next beta you will be able to see suspected line in the crash report.
Blumentals Software Programmer
Re: Crash report -> Code line number
GREAT JOB! This is really helpful when writing/debugging plugins..
There are 10 types of people in the world: Those who understand binary and those who don't.