-
Notifications
You must be signed in to change notification settings - Fork 339
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
Debugger ignores spring boot application.properties #157
Comments
The solution I found is sending the whole application.properties file inside the
I think that when having many values in application.properties this becomes cumbersome. |
@Matthew-Dong please help get the clearance to make a fix in spring boot extension. |
Greetings, Opened an issue in VSCode Spring Boot extension repo to ask Pivotal for advice. |
I was able to reproduce the problem. I'm will be doing a few little experiments to try and figure out exactly what the problem (or problems) might be. I'll report my findings here. On first try it did exactly as the reporter said he did. To be precise these exact steps:
Observations:
Observations about the classpath... It has some problems:
Number 2) is the important point here. Trying now to determine why application.properties isn't there. |
More problems (probable cause of the missing .properties file in bin folder): Looking inside the
The problem here is that we are missing the In vscode, we can trigger the refresh indirectly by editing The classpath file was updated to this:
Note that it now contains Also, looking in We now launch the process again by pressing F5 and it seems to work properly. |
The above is a little long. Here a short summary:
Some other important points (not directly related to the application.properties).
|
@kdvolder Thanks very much for your feedback, the project support is been under consideration after the next feature conditional breakpoint completes, the way from different project type to generate .classpath and .project is not transparent to user and user can hardly do anything. |
@kdvolder @amitmerin This issue is solved at java language server side, see discussions at |
Using the basic spring boot example app from https:/microsoft/gs-spring-boot.git.
I added the file
'src/main/resources/application.properties'
with the following line
server.port=8880
I run the debugger with the following Launch configuration:
{ "type": "java", "name": "Debug (Launch)-Application<complete>", "request": "launch", "cwd": "${workspaceFolder}", "mainClass": "hello.Application", "projectName": "complete", "args": "" }
The debugger runs with the default port 8080 and ignores the application.properties file
The text was updated successfully, but these errors were encountered: