Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
docs: Debugging instructions using IDEs #1309
docs: Debugging instructions using IDEs #1309
Changes from 11 commits
d378acd
401ef56
158a2f1
636c3dc
b68630e
de75607
bdc1022
86d92af
ccd015c
c17b74f
622d659
431bfcf
7ff38fe
eadcb55
d1c8fa3
fda375a
26540e2
0d24a11
6d0bcd9
46de30f
41e31ff
ec870a5
a59106e
0760cdb
6c44da6
b401d71
3b5d29f
b07154a
b1d3713
15dc549
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to remove the need to update the docs. Maybe is better to set a generic name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, that makes sense 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could add the example
--db-type in-memory
just to avoid errors.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a Common Issues section to mention using
--db-type in-memory
in case of some errors.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following the steps, I had to do two more things;
5. Select the workspace folder
6. Remove on the before start section of the build action
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for going through the steps!
I think it would be a good idea for me to add a quick line adding the workspace folder. Usually, CLion should populate this line for you to your repository root (don't change it to what's exactly in the example!) But if that is missing for whatever reason, it would be helpful to know that you should set this to the root yourself. I see that I omitted that instruction.
The "Before start" settings are optional. CLion adds "Build" by default, but it's okay because
cargo run
does a build by default. I will add a note on these settings too.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually a new feature and it's deliberate. It simply means the client is expecting you to provide a
.env
file (probably because you compiled with--all-features
), but it didn't find it. Simply add a.env
file in the root of your repo with your specific configuration values, and you're good to go.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it worked even with the error. The real error was on the database folder:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could just past here the plain json, to make it easier to copy and paste
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was not able to make the debug work, it looks like the command never finishes. It starts but not finishes.
My config;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Luiz and I discussed this specific issue over a call: It appears that the client is starting correctly, and producing the expected output in the terminal, but the VS Code debugger is not correctly attaching to the running process. Luiz and I will spend some time independently looking into this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the example with a more reliable config that users can copy + paste to get started.