Request Parameter Values ​​in the Eclipse Luna Debugger

How can I see request parameter values ​​in the Eclipse Luna debugger?

+5
source share
2 answers

To expand the debugger variables tab:
request β†’ request β†’ coyoteRequest β†’ parameters β†’ paramHashValues

+4
source

You can go to the parameters of the query object using the Variables debugger tab. However, in this case, it is easier to use the Expressions tab to execute code on the request object.

  • Right-click the query variable in the Variables tab (Debug) and select Test
  • Opens a new tab "Expressions". Click Add New Expression
  • Type request.getParameter("nameYouCareAbout")
  • Tab

If you must go to the request object, see how some other people do it here . To see the parameter values ​​directly in the debugger, keep in mind the query object that you see is usually a wrapper or facade , so you first need to expand to the real query. The instance variable name is something like parameters or parameterMap .

0
source

Source: https://habr.com/ru/post/1210704/


All Articles