-
-
Notifications
You must be signed in to change notification settings - Fork 968
Closed
Description
Steps to Reproduce
- install grails 3.2.2
- grails -v to confirm i am running 3.2.2
- grails create-app myapp
- add an interceptor myapp/grails-app/controllers/myapp/AuthenticationInterceptor.groovy
- grails clean && grails war
- java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 build/libs/myapp.war
- From my IntelliJ IDEA, set a breakpoint in the before() method of AuthenticationInterceptor
- Start debug from IDE
- Access http://localhost:8080/
Expected Behaviour
- Execution suspends at the breakpoint
Actual Behaviour
- Grails default index.html welcome page is shown; interceptor breakpoint is not hit.
Environment Information
- Operating System: macOS Sierra Version 10.12.1
- Grails Version: 3.2.2
- JDK Version: java version "1.8.0_102", Java(TM) SE Runtime Environment (build 1.8.0_102-b14), Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
Example Application
https://github.com/itpragmatik/myapp.git
Note
The breakpoint is hit when I do: grails run-app --debug-jvm