Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get rid of Debug Current Instruction Pointer
    primarykey
    data
    text
    <p>Current Instruction Pointer..When I put debugger on a particular location it starts debugging its previous step and then comes to the current location. I can see Current Instruction Pointer with the debugger icon on the another location while the debugger starts.</p> <p>Please help me I have been trying to get rid of it for last two days.</p> <p>This is the scenario:</p> <p>I have put the debugger on <strong>viewattachment</strong>.which comes after <strong>openattachment</strong>. But when I click on <strong>openattachment</strong> this starts getting debugged and then when I click the <strong>viewattachment</strong> the debugging starts for it..</p> <p>Why is it going to openattachment? Its a overhead for me. can anyone help me on it?</p> <p>Please let me know if my question is not clear.</p> <p>The code is as under..........</p> <pre><code> else if (getParameters().get("type") != null &amp;&amp; getParameters().get("type")[0].equals("**viewattachment**")){ String elementUid = getParameters().get("elementUid")[0]; String target = "failure"; JSONObject obj = new JSONObject(); if (!isUserLoggedIn()){ target="session"; obj.put("result", target); } else{ if (!isValidUid(cardUid) || !isValidUid(elementUid)){ //return "fail"; obj.put("result", "fail"); } else { setMessages(msgService.WSIGetAttachments(elementUid)); if (!isAccountManager()) { Message msg = getMessages().get(0); HttpServletResponse response = ServletActionContext.getResponse(); try{ response.getOutputStream().print(obj.toString()); } catch(IOException e){ log.error(e); } response.setContentType(msg.getAttachmentcontentType()); response.setHeader("filename", msg.getAttachmentName()); response.getWriter().print(obj); response.getWriter().flush(); response.getWriter().close(); } return null; } } } else if (getParameters().get("type") != null &amp;&amp; getParameters().get("type")[0].equals("**openattachment**")){ String elementUid = getParameters().get("elementUid")[0]; if (elementUid != null) {//Conversion detail request JSONArray array = new JSONArray(); JSONObject obj = new JSONObject(); if (!isValidUid(elementUid)){ obj.put("result", "fail"); obj.put("message", "Not a valid element"); } else{ setMessages(msgService.WSIGetAttachments(elementUid)); obj.put("result","success"); if (getMessages() != null &amp;&amp; getMessages().size() &gt; 0){ for (Message m : getMessages()){ JSONObject obj1 = new JSONObject(); obj1.put("attachmentname", m.getAttachmentName()); obj1.put("elementUid", m.getElementUID()); array.add(obj1); } } obj.put("messages", array); HttpServletResponse httpResponse = ServletActionContext.getResponse(); try{ httpResponse.getOutputStream().print(obj.toString()); } catch(IOException e){ log.error(e); } return null; } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload