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
Can't get debugger to work #65
Comments
Have you enabled parser generation and saved your grammar at least once? |
I think I did (how can I double check).
In the mean time I am separating the Lexer from the Parser, which does allow me to run the debugger.
This generates a lot of other issues, but these are unrelated.
From: Mike Lischke <notifications@github.com>
Sent: 04 January 2019 15:39
To: mike-lischke/vscode-antlr4 <vscode-antlr4@noreply.github.com>
Cc: Beek, Misha <Misha.Beek@Teradata.com>; Author <author@noreply.github.com>
Subject: Re: [mike-lischke/vscode-antlr4] Can't get debugger to work (#65)
[External Email]
…________________________________
Have you enabled parser generation and saved your grammar at least once?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#65 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AdTNCA_H_6QQCEnFbZVkgURg6nynr5CYks5u_3WogaJpZM4ZpnOa>.
|
The default for parser generation is |
Anything I can do here yet? If not I'll close the issue. |
Hi,
I know a similar issue has been posted, but that does not seem to cause of my problem.
I have set up the following launch file:
{ "version": "2.0.0", "configurations": [ { "name": "Debug ANTLR4 grammar", "type": "antlr-debug", "request": "launch", "input": "MyParser/example1.sql", "grammar": "MyParser/src/main/java/org/parser/MyParser.g4", "startRule": "statement", "printParseTree": true, "visualParseTree": true } ] }
When starting the debug with F5 I get an error message: 'typeerror cannot set property 'inputstream' of undefined'
Both the grammar file (combined) and the input file exist. The startRule also exists in the grammar. I just trying to locate the cause of this issue. I am using VsCode on Windows 10.
Any advice/guidance is appreciated.
Thanks,
Misha
The text was updated successfully, but these errors were encountered: