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

[Question] How to run in debug mode in IDEA or VSCode with latest 1.2.6, and no sequence diagram in IDEA? #24

Open
scheung38 opened this issue Jul 15, 2020 · 2 comments

Comments

@scheung38
Copy link

Cannot seem to run in debug in either IDE above using plugin 1.2.6.

Also, if project is created from within IDEA, there is no sequence diagram?

IDEA: Community Edition: 2020.1.3

Code: 1.47.0

Mac OSX: Catalina 10.15.5

@praveennadarajah
Copy link

@scheung38

We tested a simple "Hello, World!" scenario in debug mode with IDEA and VSCode. We were able to successfully debug and view sequence diagram when a project is created with IDEA.

Please follow the steps in [1] to debug in IDEA and [2] to view the sequence diagram.

We were not able to debug in VSCode successfully. This has been already fixed with ballerina-platform/ballerina-lang#24735 and ballerina-platform/ballerina-lang#24745 and the fix with be available with the Swan Lake preview 3 and 1.2.7 releases. You can follow the steps in [3] to debug in VSCode.

Tested sample scenario:

import ballerina/io;

public function main() {
    io:println("Hello, World!");
}

Tested Ballerina version:

jBallerina 1.2.6
Language specification 2020R1
Update Tool 0.8.8

Other versions:

IDEA: Community Edition: 2019.3.4
VSCode: 1.47.2
Mac OSX: High Sierra 10.13.6

[1] https://ballerina.io/learn/setting-up-intellij-idea/using-intellij-plugin-features/#debugging-ballerina-programs
[2] https://ballerina.io/learn/setting-up-intellij-idea/using-intellij-plugin-features/#viewing-the-sequence-diagram
[3] https://ballerina.io/learn/setting-up-visual-studio-code/run-and-debug/

@praveennadarajah
Copy link

We tested the above scenario in IDEA: Community Edition: 2020.1.4 as well. Everything works as expected.

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

No branches or pull requests

4 participants