Sublime Forum

Can't click backtrace

#1

I know sublime text is not a full debugger, but is clicking on errors supposed to work?

ReferenceError: feature is not defined
    at Object.<anonymous> (/opt/wasm/schism/schism.js:195:2)
    at Module._compile (module.js:649:30)
    at Object.Module._extensions..js (module.js:660:10)
    at Module.load (module.js:561:32)

Should be very easy to implement?
In cpp(only!?) sometimes errors are highlighted, why not in general (i.e. node.js)?

0 Likes

#2

This is handled by the build system : https://www.sublimetext.com/docs/3/build_systems.html
Look for file_regex and line_regex.

0 Likes

#3

Thanks that helped!!

obviously
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
is outdated.

Still trying to match
at Object.<anonymous> (/opt/wasm/schism/schism.js:195:2) :
"file_regex":"\\s*at .*? \\((.*):(\\d+):(\\d+)(.*)",
“The regular expression must capture filename,line,[column,]message”
why?? :wink:

0 Likes

#4

Yay, got it working with
"file_regex":"^\\s*at .*? \\((.*):(\\d+):(\\d+):(.*)",

still have to press F4 once and can’t click on files, but I guess that’s ok.

Are these named groups? because error appears in line before file + line nummer. nevermind.

Thanks again!

0 Likes