Tomcat Debugging in eclipse mars - debugging

can somebody provide me steps in tomcat debugging in eclipse mars(i am using), like I want to debug a simple spring mvc login example considering that I am setting the password in Controller? I followed the various steps but could not get it done.

Got it. It can be done by starting the server in debugging mode.
Steps:
Assuming one has tomcat server, Right click-->start at debug mode.
One it will show that the debugging has started, therefore, wherever, one has added/put the debug points in the java file,the control will go in the debug screen and one can debug accordingly.

Related

Breakpoint debugging in Appium

Is there a way on how to set breakpoints in appium or get a better debugging experience than looking through logs and printing console.log() all the time?
I would like to be able to stop the test run in any step and see what are the values - proceed to next step and so on. I saw that this might be possible using IDE but is there a better integration solution? Also saw that cloud device providers provide similar logging solutions like https://www.browserstack.com/docs/app-automate/appium/set-up-tests/debugging-options but this is only on the cloud devices and I would like to see it localy.
Maybe a dependency that would include what I am asking for?
My setup is appium, webdriver.io, mocha.
Thank you in advance!
First of all, debug with IDE and BrowserStack logs it's not the same. I don't know why you need it, but the best way to debug is to use the IDE
enter image description here
enter image description here
enter image description here
Also, you can create your custom logger util, which will store all the events to log file and print it
And the last one is https://appium.io/docs/en/commands/session/events/get-events/
self.driver.execute_script("mobile: deviceInfo")

How to debug RestApi deployed on local server using Vs code for Go Language

How to debug RestApi deployed on local server using Vs code for Go Language.
I have gone through delve docs and made the settings. I have a local server, With java client i am trying to get the response. The localhost server is running on debug mode but flow is not stopping on breakpoints. The code is in Go language and i am using VSCode IDE.
Hope you have proper Go lang setup for VS Code. Otherwise just check this link.
Note: You have to run your Go RestApi through VS Code
VSCode has pretty good wiki page about it on their GitHub
I do not want to quote whole docs here. Quick summary of steps would be:
Install delve
Set up configurations in launch.json
And you are ready.

debugging in MVP4G project

I have created a maven gwt project(2.7.0) and then integrated MVP4G into it.
All is working fine but now when I wanted to debug my code to understand the flow, I am not able to debug the code.
Maven goal : gwt:debug
I am running the above mentioned goal and then I am running remote application which is providing me and url and when i launch that url I am not able to debug the code.
Please can anyone guide me on how we should debug this?
Thanks in advance
To Debug, just add the sdbg plugin (take a look here) or debug inside the browser if you are familiar with browser debugging. I think Chrome is the best choice. Credits:El Hoss

How do I debug using MVC in VS 2013?

I have an MVC5/EF app that I can't seem to debug at all. I have a console app also in the project that I can debug just fine, but when I set a breakpoint in a controller it won't debug. I've googled this but can't find anything that can help.
MVC 5 and EF most certainly works in debug. It even debugs jquery. So you must have something not right.
I would check all the projects build debug settings. Make sure build mode is debug.
Add some breakpoints early on to see if they are getting called.
Difficult to pin point the exact problem considering we can’t see your project’s solution.
But for the record, you mention that you have both an ASP.NET MVC application AND a Console application living within the same project.
Since you’re also saying that you can debug the console application, could it be that the Console application is the one that is Set as StartUp project and NOT the MVC application?
If that’s not the case, can you tell us which of your projects is Set as StartUp Project?

IntelliJ IDEA debug jumps inside instead of going over

I use last stable SBT with Scala 2.10 and last Scala plugin in IntelliJ IDEA 12.x. And have very simple test Scala project.
I have specs2 test where I want to start my debug from. Having several breakpoints, I'm expecting going over lines, (from one break point to another - in my test and in My code), but instead: the debbuger going somewhere inside library classes, stops there, showing me some strange sources.
That's reproducible all the time, and I have to click 2, 3, sometimes 5 times on the next-arrow-button (on debug panel) to reach next break point (in the test or in the code).
I run my test with SBT 'test-compile' action, like IntelliJ pop-up suggests.
Aldo I found this debug settings for Scala ("Do not step into specific Scala classes"). But I have this check-box selected.
I've post an issue in IntelliJ IDEA site.
IntelliJ 15 now has support for adding breakpoints inside lambdas. See this blog post for details.

Resources