Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug helper js functions #19

Open
danielbsig opened this issue Jun 27, 2012 · 0 comments
Open

Add debug helper js functions #19

danielbsig opened this issue Jun 27, 2012 · 0 comments

Comments

@danielbsig
Copy link
Owner

There are two helper functions which must be written, to make the implementation of debugging easier:

function DebugGoToLine( file, line ){
// Implementation goes here...
}

This should move the focus to the file (if it doesn't already have focus), and to the line in question. Also, it should display a debugger arrow in the margin.

The second function is:

function ErrorGoToLine( file, line ){
// Implementation goes here...
}

Similar to the first function, i.e. moves the focus to the given file/line, but does NOT add a marker to the left margin (probably not. We might experiment with adding an "error" icon, but that probably won't be necessary). This function will be used if a compiler error occurs.

As you may notice, these two functions have similar functionality, and therefore we could write a function (if it doesn't already exist), which takes care of the common functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant