- This topic has 4 replies, 2 voices, and was last updated 7 years, 1 month ago by
Brian Fernandes.
-
AuthorPosts
-
myronueckerParticipantThis is a basic question about debugging with CodeMix. We are developing a Spring Boot application with an Angular 5 application as the front end. Right now we have our Gradle build set up to build the Angular application and drop the webpack output into the Spring Boot application’s static folder. When I tried setting a breakpoint in the Typescript code, it hit the breakpoint, but lost syntax highlighting and stepping into the code didn’t appear to actually follow our code.
Is this configuration supported? If so, how do I set up CodeMix to debug the Angular/Typescript code? Is there a different way we should be testing the Angular application?
May 3, 2018 at 2:53 pm #584594
Brian FernandesModeratorMyron,
I must admit I don’t have experience with debugging a setup like that, though I have debugged Angular projects that are being served through Node. I’ve been able to step just fine through TypeScript source with full syntax highlighting, etc. Here’s our doc on debugging, if you haven’t seen it yet: https://www.genuitec.com/docs/debugger/debugging-in-codemix/
Now I believe debugging your set up should be possible, with the right configuration – especially around source maps. Can you share your launch.json file with us? It should be in the
.vscode
folder in your project.May 3, 2018 at 2:59 pm #584595
myronueckerParticipantI have seen the debugging page, but it doesn’t really talk about how to do something like I’m trying. Certainly if I launched the Angular app separate it would work, but we have dependencies loaded from our Spring application so my index is a JSP file. I know there is a way to debug webpack files, I’m just now sure how I would do it through CodeMix.
See attached. I just simply told it to launch Chrome and pointed it to the home directory for my Angular client.
Attachments:
You must be logged in to view attached files.May 4, 2018 at 7:47 am #584791
myronueckerParticipantYesterday I worked with the group that helped set up our Angular project. As it turns out, the source maps were not getting generated completely by Webpack. We changed the webpack config to output eval-source-maps and the code is lining up. The Chrome debugger thinks I am debugging from VSCode, which is to be expected.
May 4, 2018 at 8:02 am #584794
Brian FernandesModeratorMyron,
That’s pretty sweet and thank you for writing back! I’m assuming you didn’t have to change anything in your launch.json?
-
AuthorPosts