SqrTT / prophet

Prophet Debugger (SFCC sandboxes via SDAPI 2.0) extension for VS Code
https://marketplace.visualstudio.com/items?itemName=SqrTT.prophet
Other
144 stars 59 forks source link

Debugger connects fine but the code doesn't stop on breakpoints #92

Closed rawwebdesign closed 6 years ago

rawwebdesign commented 6 years ago

Hello,

I absolutely love this plugin and have been happily using it for months now, but today all-of-the-sudden the breakpoints don't cause the debugger to stop. It connects fine. And when I use the debugger in Eclipse, Eclipse does stop on the breakpoints.

I uninstalled and reinstalled Prophet Debugger. I restarted my sandbox. I looked over all config and it all looks right.

Any idea what might be causing this?

22:08:04, 2018-3-21
From client: initialize({"clientID":"vscode","adapterID":"prophet","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us"})
To client: {"event":"prophet.getdebugger.config","type":"event","seq":1}
From client: DebuggerConfig({"config":{REMOVED BECAUSE OF SENSITIVE STUFF})
To client: {"seq":0,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"supportsConfigurationDoneRequest":true,"supportsEvaluateForHovers":false,"supportsFunctionBreakpoints":false,"supportsConditionalBreakpoints":false,"supportsHitConditionalBreakpoints":false,"supportsSetVariable":false,"supportsGotoTargetsRequest":false,"supportsRestartRequest":false,"supportsRestartFrame":false,"supportsExceptionInfoRequest":false,"supportsExceptionOptions":false,"supportsStepBack":false,"supportsValueFormattingOptions":true,"exceptionBreakpointFilters":[]}}
To client: {"seq":0,"type":"response","request_seq":2,"command":"DebuggerConfig","success":true}
From client: launch({"type":"prophet","request":"launch","name":"Dev13","hostname":"dev13-web-mysandbox.demandware.net","username":"bspencer","password":"removed","codeversion":"Test_version","cartridgeroot":"auto","workspaceroot":"/Users/bspencer/demandware","trace":true,"__sessionId":"78652595-36ea-42be-9095-3ea6de266bcd"})
To client: {"seq":0,"type":"response","request_seq":3,"command":"launch","success":true}
To client: {"seq":0,"type":"event","event":"initialized"}
To client: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"successfully connected\nconsole can be used to evaluate variables\nwaiting for breakpoint hit...\n"}}
From client: setBreakpoints({"source":{"name":"CartController.js","path":"/Users/bspencer/demandware/code/cartridges/app_myproject_controllers/cartridge/controllers/CartController.js"},"lines":[114],"breakpoints":[{"line":114}],"sourceModified":false})
To client: {"seq":0,"type":"response","request_seq":4,"command":"setBreakpoints","success":true,"body":{"breakpoints":[{"verified":true,"line":114,"source":{"name":"1 - CartController.js","path":"/Users/bspencer/demandware/code/cartridges/app_myproject_controllers/cartridge/controllers/CartController.js","sourceReference":0}}]}}
From client: configurationDone(undefined)
To client: {"seq":0,"type":"response","request_seq":5,"command":"configurationDone","success":true}
From client: threads(undefined)
To client: {"seq":0,"type":"response","request_seq":6,"command":"threads","success":true,"body":{"threads":[]}}
To client: {"seq":0,"type":"event","event":"thread","body":{"reason":"started","threadId":68}}
To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"breakpoint","threadId":68}}
From client: threads(undefined)
From client: threads(undefined)
To client: {"seq":0,"type":"response","request_seq":7,"command":"threads","success":true,"body":{"threads":[]}}
To client: {"seq":0,"type":"response","request_seq":8,"command":"threads","success":true,"body":{"threads":[]}}
To client: {"seq":0,"type":"event","event":"thread","body":{"reason":"started","threadId":84}}
To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"breakpoint","threadId":84}}
To client: {"seq":0,"type":"event","event":"thread","body":{"reason":"exited","threadId":68}}
From client: threads(undefined)
From client: threads(undefined)
To client: {"seq":0,"type":"response","request_seq":10,"command":"threads","success":true,"body":{"threads":[]}}
To client: {"seq":0,"type":"response","request_seq":9,"command":"threads","success":true,"body":{"threads":[]}}
To client: {"seq":0,"type":"event","event":"thread","body":{"reason":"exited","threadId":84}}
SqrTT commented 6 years ago

thanks for reporting. I'll take a look

rawwebdesign commented 6 years ago

A bit more info...

I downgraded back to version 0.10.0 and it's working again. I'm not sure if I had to go that many versions back, it's the first version I tried downgrading to.

kdomachowski commented 6 years ago

I'm running into the exact same problem. Good to know that it isn't just me who has the problem. Any chance you can prioritize the fix?

SqrTT commented 6 years ago

Unfortunately, I'm not able to reproduce the issue neither on Linux nor Windows...

Could you please provide some steps to reproduce?

SqrTT commented 6 years ago

Also would be great to have a more detailed log...

To enable detailed log extension needs to be hacked a bit.

//out/Connection.js
const { logger } = require("vscode-debugadapter"); // add line in script header

// uncomment lines in `makeRequest` method
logger.verbose('req -> ' + JSON.stringify(options));
...
 logger.verbose('req: ' + JSON.stringify(options));
 logger.verbose('res: ' + JSON.stringify(body));
kdomachowski commented 6 years ago

Unfortunately, I cannot get the detailed log working. While it doesn't throw errors, it also doesn't show any output in the debug console.

SqrTT commented 6 years ago

I've added options in v1.0.2 to log communication debugServer <-> sandbox.

Could you please enable it in dw.json "verbose" : true together with "trace": true in launch.json and provide more details about the issue?

tmichele commented 6 years ago

Same problem here!

ghgofort commented 6 years ago

I am now having this same issue. It did not occur for me until I updated to v1.0.4.

So far I have done the following things to try to resolve the issue without any luck:

Here is a copy of the debugger log file: prophet-debugger.log

Config Information

dw.json

{
  "hostname": "******.demandware.net",
  "username": "**********",
  "password": "**********",
  "verbose": true,
  "version": "upstream",
  "cartridge": [
    "app_loyalty",
    "app_ordershippingstatus",
    "app_returns",
    "app_spc",
    "core_commerce",
    "core_commerce_richUI",
    "core_controllers",
    "core_deckers",
    "int_accertify",
    "int_DCD_avatax",
    "int_paypal_v16_1_0",
    "modules",
    "site_hoka_v2",
    "site_koolaburra",
    "site_sanuk",
    "site_services",
    "site_teva_sanuk",
    "site_teva_us",
    "site_ugg_closet",
    "site_ugg_us"
  ]
}

launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "prophet",
      "request": "launch",
      "name": "DW25 Script Debugger",
      "trace": true
    }
  ]
}

Current OS

I have been fighting this for a while now. When I get some time, I will try to take a look at the extension's code if I have time, but if someone else is able to resolve this first that would be a big help!

Please let me know what else I can provide to help resolve the issue.

SqrTT commented 6 years ago

thanks a lot for the detailed info. I'll try to figure out what happened.

SqrTT commented 6 years ago

@ghgofort Looks like you have .project in /Users/galen.goforth/bitbucket/dw-upstream this makes an extension think this is a cartridge and incorrectly resolves paths. Could you please remove it and check again?

ghgofort commented 6 years ago

@SqrTT -- Thank you for the help. After removing the .project file from the root directory of my project I was able to stop at break points again.

For anyone else wondering, here is what my directory structure looks like:

If you also have a cartridges directory and are experiencing this issue, check for a .project file in the root directory!

suaterken commented 6 years ago

Hello, It's also happening to me rarely. What i can see mostly is, the case is happening after httpclient.send() methods. So i think you may have chance to find this issue using that. It happens like %70 of time on this calls. And also sometimes if i put debugger on 4-5th child file ( a > b > c > d > e > f, in this case if i put breakpoint on some method inside file 'd' or 'e' or 'f') it does not breaks on that line but it seems its breaks, because server does not corresponding. And it does works on eclipse. Thanks

SqrTT commented 6 years ago

Could you guys, provide detailed log within the time frame when the issue happened?

dw.json "verbose" : true together with "trace": true in launch.json

suaterken commented 6 years ago

@SqrTT It keeps displaying same output while i was waiting on next line Here is detailed logs;

req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"GetAllocation()","line_number":388,"script_path":"/bm_algo_lsd/cartridge/controllers/CSAllocation.js"}},{"index":1,"location":{"function_name":"getLSDAllocation()","line_number":1165,"script_path":"/app_celine_controllers/cartridge/controllers/Leadtime.js"}},{"index":2,"location":{"function_name":"calculateLeadtimeByLSD()","line_number":1208,"script_path":"/app_celine_controllers/cartridge/controllers/Leadtime.js"}},{"index":3,"location":{"function_name":"updateShippingMethodList()","line_number":547,"script_path":"/app_celine_controllers/cartridge/controllers/COShipping.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":56,"status":"halted"}]}
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"GetAllocation()","line_number":388,"script_path":"/bm_algo_lsd/cartridge/controllers/CSAllocation.js"}},{"index":1,"location":{"function_name":"getLSDAllocation()","line_number":1165,"script_path":"/app_celine_controllers/cartridge/controllers/Leadtime.js"}},{"index":2,"location":{"function_name":"calculateLeadtimeByLSD()","line_number":1208,"script_path":"/app_celine_controllers/cartridge/controllers/Leadtime.js"}},{"index":3,"location":{"function_name":"updateShippingMethodList()","line_number":547,"script_path":"/app_celine_controllers/cartridge/controllers/COShipping.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":56,"status":"halted"}]}
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"GetAllocation()","line_number":388,"script_path":"/bm_algo_lsd/cartridge/controllers/CSAllocation.js"}},{"index":1,"location":{"function_name":"getLSDAllocation()","line_number":1165,"script_path":"/app_celine_controllers/cartridge/controllers/Leadtime.js"}},{"index":2,"location":{"function_name":"calculateLeadtimeByLSD()","line_number":1208,"script_path":"/app_celine_controllers/cartridge/controllers/Leadtime.js"}},{"index":3,"location":{"function_name":"updateShippingMethodList()","line_number":547,"script_path":"/app_celine_controllers/cartridge/controllers/COShipping.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":56,"status":"halted"}]}
req -> {"uri":"/threads/reset","method":"POST"}
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"GetAllocation()","line_number":388,"script_path":"/bm_algo_lsd/cartridge/controllers/CSAllocation.js"}},{"index":1,"location":{"function_name":"getLSDAllocation()","line_number":1165,"script_path":"/app_celine_controllers/cartridge/controllers/Leadtime.js"}},{"index":2,"location":{"function_name":"calculateLeadtimeByLSD()","line_number":1208,"script_path":"/app_celine_controllers/cartridge/controllers/Leadtime.js"}},{"index":3,"location":{"function_name":"updateShippingMethodList()","line_number":547,"script_path":"/app_celine_controllers/cartridge/controllers/COShipping.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":56,"status":"halted"}]}
req: {"uri":"/threads/reset","method":"POST","json":true}
res: undefined
SqrTT commented 6 years ago

@suaterken thanks for the log. Is possible to show more logs before this happened? So would be possible to track why this happens.

suaterken commented 6 years ago

This is all i can get about the "before" process

From client: continue({"threadId":89})
To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"step","threadId":89}}
To client: {"seq":0,"type":"response","request_seq":56,"command":"continue","success":true,"body":{"allThreadsContinued":false}}
From client: threads(undefined)
To client: {"seq":0,"type":"response","request_seq":57,"command":"threads","success":true,"body":{"threads":[{"id":89,"name":"thread 89"}]}}
From client: stackTrace({"threadId":89,"startFrame":0,"levels":20})
From client: stackTrace({"threadId":89,"startFrame":0,"levels":20})
To client: {"seq":0,"type":"response","request_seq":58,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":8900000,"source":{"name":"OCAPIHelper.ds","path":"c:\\workspace\\Celine\\cartridges\\bm_algo_lsd\\cartridge\\scripts\\util\\OCAPIHelper.ds","sourceReference":0},"line":275,"column":0,"name":"-anonymous-()"},{"id":8900001,"source":{"name":"CSAllocation.js","path":"c:\\workspace\\Celine\\cartridges\\bm_algo_lsd\\cartridge\\controllers\\CSAllocation.js","sourceReference":0},"line":175,"column":0,"name":"getDCStore()"},{"id":8900002,"source":{"name":"CSAllocation.js","path":"c:\\workspace\\Celine\\cartridges\\bm_algo_lsd\\cartridge\\controllers\\CSAllocation.js","sourceReference":0},"line":381,"column":0,"name":"GetAllocation()"},{"id":8900003,"source":{"name":"Leadtime.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Leadtime.js","sourceReference":0},"line":1165,"column":0,"name":"getLSDAllocation()"},{"id":8900004,"source":{"name":"Leadtime.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Leadtime.js","sourceReference":0},"line":1208,"column":0,"name":"calculateLeadtimeByLSD()"},{"id":8900005,"source":{"name":"COShipping.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\COShipping.js","sourceReference":0},"line":612,"column":0,"name":"getApplicableShippingMethodsJSON()"},{"id":8900006,"source":{"name":"guard.js","path":"c:\[...]
From client: scopes({"frameId":8900000})
To client: {"seq":0,"type":"response","request_seq":59,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":8900000,"source":{"name":"OCAPIHelper.ds","path":"c:\\workspace\\Celine\\cartridges\\bm_algo_lsd\\cartridge\\scripts\\util\\OCAPIHelper.ds","sourceReference":0},"line":275,"column":0,"name":"-anonymous-()"},{"id":8900001,"source":{"name":"CSAllocation.js","path":"c:\\workspace\\Celine\\cartridges\\bm_algo_lsd\\cartridge\\controllers\\CSAllocation.js","sourceReference":0},"line":175,"column":0,"name":"getDCStore()"},{"id":8900002,"source":{"name":"CSAllocation.js","path":"c:\\workspace\\Celine\\cartridges\\bm_algo_lsd\\cartridge\\controllers\\CSAllocation.js","sourceReference":0},"line":381,"column":0,"name":"GetAllocation()"},{"id":8900003,"source":{"name":"Leadtime.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Leadtime.js","sourceReference":0},"line":1165,"column":0,"name":"getLSDAllocation()"},{"id":8900004,"source":{"name":"Leadtime.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Leadtime.js","sourceReference":0},"line":1208,"column":0,"name":"calculateLeadtimeByLSD()"},{"id":8900005,"source":{"name":"COShipping.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\COShipping.js","sourceReference":0},"line":612,"column":0,"name":"getApplicableShippingMethodsJSON()"},{"id":8900006,"source":{"name":"guard.js","path":"c:\[...]
To client: {"seq":0,"type":"response","request_seq":60,"command":"scopes","success":true,"body":{"scopes":[{"name":"local","variablesReference":1048,"expensive":false},{"name":"global","variablesReference":1049,"expensive":false}]}}
From client: variables({"variablesReference":1048})
To client: {"seq":0,"type":"response","request_seq":61,"command":"variables","success":true,"body":{"variables":[{"name":"arguments","type":"Object","value":"[object Arguments]","presentationHint":{"kind":"data"},"variablesReference":1050},{"name":"authParams","type":"string","value":"client_id=asdasd&grant_type=urn:demandware:params:oauth:grant-type:client-id:dwsid:dwsecuretoken","variablesReference":0},{"name":"httpClient","type":"dw/net/HTTPClient","value":"[HTTPClient id=20126132]","presentationHint":{"kind":"class"},"variablesReference":1051},{"name":"ocapiCredentials","type":"Object","value":"[object Object]","presentationHint":{"kind":"data"},"variablesReference":1052},{"name":"result","type":"undefined","value":"undefined","variablesReference":0},{"name":"signature","type":"string","value":"hYWFhYWFhYWFhYWFh=","variablesReference":0},{"name":"token","type":"object","value":"null","variablesReference":0},{"name":"tokenEndpoint","type":"string","value":"https://dev07-eshop-celine.demandware.net/dw/oauth2/access_token","variablesReference":0}]}}
From client: next({"threadId":89})
To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"step","threadId":89}}
To client: {"seq":0,"type":"response","request_seq":62,"command":"next","success":true,"body":{"allThreadsContinued":false}}
From client: threads(undefined)
To client: {"seq":0,"type":"response","request_seq":63,"command":"threads","success":true,"body":{"threads":[]}}
SqrTT commented 6 years ago

@suaterken thanks a lot for your involvement

This is all i can get about the "before" process

Is there change to get both logs together? Since the last one is almost the same as the log from initial comment and would be great to see communication between debugger and sandbox. I see no full picture without this.

Here is detailed logs;

this log doesn't contain communication VSCode <> debugger

dw.json "verbose" : true together with "trace": true in launch.json

rawwebdesign commented 6 years ago

Just want to say that removing the .project in my root fixed it. Thanks!

kdomachowski commented 6 years ago

Confirmed. I also removed the .project file and it worked. Thanks!!!

suaterken commented 6 years ago

I don't have the file and still not works.. I will try to add more logs

suaterken commented 6 years ago

dw.json "verbose" : true together with "trace": true in launch.json

I was using this settings, and enabled those again, here are detailed logs.

req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0"}
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":1,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
To client: {"seq":0,"type":"event","event":"thread","body":{"reason":"started","threadId":16}}
To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"breakpoint","threadId":16}}
From client: threads(undefined)
req -> {"uri":"/threads","method":"GET"}
From client: threads(undefined)
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":1,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
To client: {"seq":0,"type":"response","request_seq":8,"command":"threads","success":true,"body":{"threads":[{"id":16,"name":"thread 16"}]}}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":1,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
To client: {"seq":0,"type":"response","request_seq":9,"command":"threads","success":true,"body":{"threads":[{"id":16,"name":"thread 16"}]}}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":1,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":10,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600001,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600002,"source":{"name":"guard.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\scripts\\guard.js","sourceReference":0},"line":149,"column":0,"name":"-anonymous-()"}],"totalFrames":3}}
From client: scopes({"frameId":1600000})
req -> {"uri":"/threads/16/frames/0/variables","method":"GET"}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":1,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":11,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600001,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600002,"source":{"name":"guard.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\scripts\\guard.js","sourceReference":0},"line":149,"column":0,"name":"-anonymous-()"}],"totalFrames":3}}
req: {"uri":"/threads/16/frames/0/variables","method":"GET","json":true}
res: {"_v":"2.0","count":31,"object_members":[{"name":"arguments","parent":"","scope":"local","type":"Object","value":"[object Arguments]"},{"name":"Calendar","parent":"","scope":"global","type":"function","value":"[JavaClass dw.util.Calendar]"},{"name":"createOrder","parent":"","scope":"global","type":"Function","value":"\nfunction createOrder(order, isDepositCall) {\n    try {\n        var service;\n        var result;\n        var endpointParam;\n        service = require(\"~/cartridge/scripts/services/sales/createOrderService\").getService();\n        if (typeof order === \"string\") {\n            order = OrderMgr.getOrder(order);\n            if (empty(order)) {\n                return;\n            }\n        }\n        endpointParam = {\"order\": order, \"isDepositCall\": isDepositCall};\n        result = service.call(endpointParam);\n        Logger.warn(\"[CreateOrder] Order Create Result : \" + result.msg);\n        return result;\n    }\n    catch (e) {\n        var err = e.message;\n        Logger.error(\"[CreateOrder] Error while importing Order : \" + order.orderNo + \" \" + e);\n    }\n}\n"},{"name":"createOrderMonitoring","parent":"","scope":"global","type":"Function","value":"\nfunction createOrderMonitoring(order) {\n    try {\n        var service;\n        var result;\n        var endpointParam;\n        service = require(\"~/cartridge/scripts/services/sales/createOrderServiceMonitoring\").getService();\n        if (typeof order === \"string\") {\n         [...]
To client: {"seq":0,"type":"response","request_seq":12,"command":"scopes","success":true,"body":{"scopes":[{"name":"local","variablesReference":1000,"expensive":false},{"name":"global","variablesReference":1001,"expensive":false}]}}
From client: variables({"variablesReference":1000})
To client: {"seq":0,"type":"response","request_seq":13,"command":"variables","success":true,"body":{"variables":[{"name":"arguments","type":"Object","value":"[object Arguments]","presentationHint":{"kind":"data"},"variablesReference":1002},{"name":"getResult","type":"dw/svc/Result","value":"[OK]","presentationHint":{"kind":"class"},"variablesReference":1003},{"name":"isOrderLocked","type":"boolean","value":"false","variablesReference":0},{"name":"lockReason","type":"object","value":"null","variablesReference":0},{"name":"order","type":"dw/order/Order","value":"[Order uuid=76e6958a84199d3cdf6a6a5551]","presentationHint":{"kind":"class"},"variablesReference":1004},{"name":"requestParameters","type":"Object","value":"[object Object]","presentationHint":{"kind":"data"},"variablesReference":1005},{"name":"result","type":"undefined","value":"undefined","variablesReference":0},{"name":"service","type":"dw/svc/SOAPService","value":"[SOAPService id=24329267]","presentationHint":{"kind":"class"},"variablesReference":1006}]}}
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":1,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
req -> {"uri":"/threads/reset","method":"POST"}
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads/reset","method":"POST","json":true}
res: undefined
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":1,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
req -> {"uri":"/threads","method":"GET"}
From client: stepIn({"threadId":16})
req -> {"uri":"/threads/16/into","method":"POST"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":1,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
req: {"uri":"/threads/16/into","method":"POST","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"-anonymous-()","line_number":16,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/saleCommon.js"}},{"index":1,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":2,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":3,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"step","threadId":16}}
To client: {"seq":0,"type":"response","request_seq":14,"command":"stepIn","success":true,"body":{"allThreadsContinued":false}}
From client: threads(undefined)
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"-anonymous-()","line_number":16,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/saleCommon.js"}},{"index":1,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":2,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":3,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
To client: {"seq":0,"type":"response","request_seq":15,"command":"threads","success":true,"body":{"threads":[{"id":16,"name":"thread 16"}]}}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"-anonymous-()","line_number":16,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/saleCommon.js"}},{"index":1,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":2,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":3,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":16,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleCommon.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\services\\sales\\saleCommon.js","sourceReference":0},"line":16,"column":0,"name":"-anonymous-()"},{"id":1600001,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600002,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600003,"source":{"name":"guard.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\scripts\\guard.js","sourceReference":0},"line":149,"column":0,"name":"-anonymous-()"}],"totalFrames":4}}
From client: scopes({"frameId":1600000})
req -> {"uri":"/threads/16/frames/0/variables","method":"GET"}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"-anonymous-()","line_number":16,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/saleCommon.js"}},{"index":1,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":2,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":3,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":17,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleCommon.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\services\\sales\\saleCommon.js","sourceReference":0},"line":16,"column":0,"name":"-anonymous-()"},{"id":1600001,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600002,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600003,"source":{"name":"guard.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\scripts\\guard.js","sourceReference":0},"line":149,"column":0,"name":"-anonymous-()"}],"totalFrames":4}}
req: {"uri":"/threads/16/frames/0/variables","method":"GET","json":true}
res: {"_v":"2.0","count":7,"object_members":[{"name":"arguments","parent":"","scope":"local","type":"Object","value":"[object Arguments]"},{"name":"exports","parent":"","scope":"global","type":"Object","value":"[object Object]"},{"name":"LocalServiceRegistry","parent":"","scope":"global","type":"function","value":"[JavaClass dw.svc.LocalServiceRegistry]"},{"name":"module","parent":"","scope":"global","type":"Object","value":"[object Object]"},{"name":"Result","parent":"","scope":"global","type":"function","value":"[JavaClass dw.svc.Result]"},{"name":"SaleDocumentService","parent":"","scope":"global","type":"Object","value":"[object Object]"},{"name":"Service","parent":"","scope":"global","type":"function","value":"[JavaClass dw.svc.Service]"}],"start":0,"total":7}
To client: {"seq":0,"type":"response","request_seq":18,"command":"scopes","success":true,"body":{"scopes":[{"name":"local","variablesReference":1007,"expensive":false},{"name":"global","variablesReference":1008,"expensive":false}]}}
From client: variables({"variablesReference":1007})
To client: {"seq":0,"type":"response","request_seq":19,"command":"variables","success":true,"body":{"variables":[{"name":"arguments","type":"Object","value":"[object Arguments]","presentationHint":{"kind":"data"},"variablesReference":1009}]}}
From client: continue({"threadId":16})
req -> {"uri":"/threads/16/resume","method":"POST"}
req: {"uri":"/threads/16/resume","method":"POST","json":true}
res: {"_v":"2.0","id":16,"status":"running"}
req -> {"uri":"/threads","method":"GET"}
To client: {"seq":0,"type":"response","request_seq":20,"command":"continue","success":true,"body":{"allThreadsContinued":false}}
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"updateOrderHeaderRequest()","line_number":586,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":3,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":4,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":5,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"step","threadId":16}}
From client: threads(undefined)
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"updateOrderHeaderRequest()","line_number":586,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":3,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":4,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":5,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"updateOrderHeaderRequest()","line_number":586,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":3,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":4,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":5,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
To client: {"seq":0,"type":"response","request_seq":21,"command":"threads","success":true,"body":{"threads":[{"id":16,"name":"thread 16"}]}}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"updateOrderHeaderRequest()","line_number":586,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":3,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":4,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":5,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":22,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":586,"column":0,"name":"updateOrderHeaderRequest()"},{"id":1600001,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":491,"column":0,"name":"createUpdateRequest()"},{"id":1600002,"source":{"name":"updateOrderService.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\services\\sales\\updateOrderService.js","sourceReference":0},"line":22,"column":0,"name":"-anonymous-()"},{"id":1600003,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600004,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600005,"source":{"name":"guard.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\scripts\\guard.js","sourceReference":0},"line":149,"column":0,"name":"-anonymous-()"}],"totalFrames":6}}
From client: scopes({"frameId":1600000})
req -> {"uri":"/threads/16/frames/0/variables","method":"GET"}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"updateOrderHeaderRequest()","line_number":586,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":3,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":4,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":5,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":23,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":586,"column":0,"name":"updateOrderHeaderRequest()"},{"id":1600001,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":491,"column":0,"name":"createUpdateRequest()"},{"id":1600002,"source":{"name":"updateOrderService.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\services\\sales\\updateOrderService.js","sourceReference":0},"line":22,"column":0,"name":"-anonymous-()"},{"id":1600003,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600004,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600005,"source":{"name":"guard.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\scripts\\guard.js","sourceReference":0},"line":149,"column":0,"name":"-anonymous-()"}],"totalFrames":6}}
req: {"uri":"/threads/16/frames/0/variables","method":"GET","json":true}
res: {"_v":"2.0","count":60,"object_members":[{"name":"arguments","parent":"","scope":"local","type":"Object","value":"[object Arguments]"},{"name":"Calendar","parent":"","scope":"global","type":"function","value":"[JavaClass dw.util.Calendar]"},{"name":"COUNTRY_MAP","parent":"","scope":"global","type":"Object","value":"[object Object]"},{"name":"createAddress","parent":"","scope":"global","type":"Function","value":"\nfunction createAddress(service, orderAddress) {\n    var address = new service.Address();\n    var company = (orderAddress.companyName || \"\") + \" \" + (orderAddress.getCustom()[\"aptFloor\"] || \"\");\n    var iso3country = COUNTRY_MAP[orderAddress.countryCode.value.toUpperCase()];\n    address.setCity(orderAddress.city);\n    address.setCountryId(iso3country);\n    address.setFirstName(orderAddress.firstName);\n    address.setLastName(orderAddress.lastName);\n    address.setLine1(orderAddress.getCustom()[\"streetname\"]);\n    address.setLine2(company.trim());\n    address.setPhoneNumber(orderAddress.phone);\n    var titleId = (orderAddress.title === \"mr\") ? \"M\" : \"MME\";\n    address.setTitleId(titleId);\n    address.setZipCode(orderAddress.postalCode);\n    return address;\n}\n"},{"name":"createBillingStatus","parent":"","scope":"global","type":"Function","value":"\nfunction createBillingStatus(service) {\n    return new service.BillingStatus.fromValue(\"Pending\");\n}\n"},{"name":"createDeliveryType","parent":"","scope":"global","type":"Function","va[...]
To client: {"seq":0,"type":"response","request_seq":24,"command":"scopes","success":true,"body":{"scopes":[{"name":"local","variablesReference":1010,"expensive":false},{"name":"global","variablesReference":1011,"expensive":false}]}}
From client: variables({"variablesReference":1010})
To client: {"seq":0,"type":"response","request_seq":25,"command":"variables","success":true,"body":{"variables":[{"name":"arguments","type":"Object","value":"[object Arguments]","presentationHint":{"kind":"data"},"variablesReference":1012},{"name":"creditPayment","type":"boolean","value":"true","variablesReference":0},{"name":"header","type":"object","value":"[webreferences2.SaleDocumentService.UpdateHeader]","presentationHint":{"kind":"data"},"variablesReference":1013},{"name":"order","type":"dw/order/Order","value":"[Order uuid=76e6958a84199d3cdf6a6a5551]","presentationHint":{"kind":"class"},"variablesReference":1014},{"name":"orderDate","type":"dw/util/Calendar","value":"[Calendar id=30070723]","presentationHint":{"kind":"class"},"variablesReference":1015},{"name":"service","type":"iterable","value":"[JavaPackage webreferences2.SaleDocumentService]","variablesReference":0}]}}
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"updateOrderHeaderRequest()","line_number":586,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":3,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":4,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":5,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
From client: next({"threadId":16})
req -> {"uri":"/threads/16/over","method":"POST"}
req: {"uri":"/threads/16/over","method":"POST","json":true}
res: {"_v":"2.0","id":16,"status":"running"}
req -> {"uri":"/threads","method":"GET"}
To client: {"seq":0,"type":"response","request_seq":26,"command":"next","success":true,"body":{"allThreadsContinued":false}}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"createUserFields()","line_number":1366,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"updateOrderHeaderRequest()","line_number":586,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":3,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":4,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":5,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":6,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"step","threadId":16}}
From client: threads(undefined)
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"createUserFields()","line_number":1366,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"updateOrderHeaderRequest()","line_number":586,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":3,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":4,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":5,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":6,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
To client: {"seq":0,"type":"response","request_seq":27,"command":"threads","success":true,"body":{"threads":[{"id":16,"name":"thread 16"}]}}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"createUserFields()","line_number":1366,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"updateOrderHeaderRequest()","line_number":586,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":3,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":4,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":5,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":6,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":28,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":1366,"column":0,"name":"createUserFields()"},{"id":1600001,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":586,"column":0,"name":"updateOrderHeaderRequest()"},{"id":1600002,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":491,"column":0,"name":"createUpdateRequest()"},{"id":1600003,"source":{"name":"updateOrderService.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\services\\sales\\updateOrderService.js","sourceReference":0},"line":22,"column":0,"name":"-anonymous-()"},{"id":1600004,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600005,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600006,"source":{[...]
From client: scopes({"frameId":1600000})
req -> {"uri":"/threads/16/frames/0/variables","method":"GET"}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"createUserFields()","line_number":1366,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"updateOrderHeaderRequest()","line_number":586,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":3,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":4,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":5,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":6,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":29,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":1366,"column":0,"name":"createUserFields()"},{"id":1600001,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":586,"column":0,"name":"updateOrderHeaderRequest()"},{"id":1600002,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":491,"column":0,"name":"createUpdateRequest()"},{"id":1600003,"source":{"name":"updateOrderService.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\services\\sales\\updateOrderService.js","sourceReference":0},"line":22,"column":0,"name":"-anonymous-()"},{"id":1600004,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600005,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600006,"source":{[...]
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads/16/frames/0/variables","method":"GET","json":true}
res: {"_v":"2.0","count":64,"object_members":[{"name":"arguments","parent":"","scope":"local","type":"Object","value":"[object Arguments]"},{"name":"Calendar","parent":"","scope":"global","type":"function","value":"[JavaClass dw.util.Calendar]"},{"name":"COUNTRY_MAP","parent":"","scope":"global","type":"Object","value":"[object Object]"},{"name":"createAddress","parent":"","scope":"global","type":"Function","value":"\nfunction createAddress(service, orderAddress) {\n    var address = new service.Address();\n    var company = (orderAddress.companyName || \"\") + \" \" + (orderAddress.getCustom()[\"aptFloor\"] || \"\");\n    var iso3country = COUNTRY_MAP[orderAddress.countryCode.value.toUpperCase()];\n    address.setCity(orderAddress.city);\n    address.setCountryId(iso3country);\n    address.setFirstName(orderAddress.firstName);\n    address.setLastName(orderAddress.lastName);\n    address.setLine1(orderAddress.getCustom()[\"streetname\"]);\n    address.setLine2(company.trim());\n    address.setPhoneNumber(orderAddress.phone);\n    var titleId = (orderAddress.title === \"mr\") ? \"M\" : \"MME\";\n    address.setTitleId(titleId);\n    address.setZipCode(orderAddress.postalCode);\n    return address;\n}\n"},{"name":"createBillingStatus","parent":"","scope":"global","type":"Function","value":"\nfunction createBillingStatus(service) {\n    return new service.BillingStatus.fromValue(\"Pending\");\n}\n"},{"name":"createDeliveryType","parent":"","scope":"global","type":"Function","va[...]
To client: {"seq":0,"type":"response","request_seq":30,"command":"scopes","success":true,"body":{"scopes":[{"name":"local","variablesReference":1016,"expensive":false},{"name":"global","variablesReference":1017,"expensive":false}]}}
From client: variables({"variablesReference":1016})
To client: {"seq":0,"type":"response","request_seq":31,"command":"variables","success":true,"body":{"variables":[{"name":"arguments","type":"Object","value":"[object Arguments]","presentationHint":{"kind":"data"},"variablesReference":1018},{"name":"creditPayment","type":"boolean","value":"true","variablesReference":0},{"name":"fourDigits","type":"string","value":"0000","variablesReference":0},{"name":"isDepositCall","type":"undefined","value":"undefined","variablesReference":0},{"name":"order","type":"dw/order/Order","value":"[Order uuid=76e6958a84199d3cdf6a6a5551]","presentationHint":{"kind":"class"},"variablesReference":1019},{"name":"paymentInstrument","type":"undefined","value":"undefined","variablesReference":0},{"name":"paymentInstruments","type":"undefined","value":"undefined","variablesReference":0},{"name":"service","type":"iterable","value":"[JavaPackage webreferences2.SaleDocumentService]","variablesReference":0},{"name":"userField","type":"object","value":"[webreferences2.SaleDocumentService.UserField]","presentationHint":{"kind":"data"},"variablesReference":1020},{"name":"userFields","type":"object","value":"[webreferences2.SaleDocumentService.ArrayOfUserField]","presentationHint":{"kind":"data"},"variablesReference":1021}]}}
From client: next({"threadId":16})
req -> {"uri":"/threads/16/over","method":"POST"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"createUserFields()","line_number":1366,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"updateOrderHeaderRequest()","line_number":586,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":3,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":4,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":5,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":6,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
req: {"uri":"/threads/16/over","method":"POST","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"createUserFields()","line_number":1366,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"updateOrderHeaderRequest()","line_number":586,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":3,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":4,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":5,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":6,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"step","threadId":16}}
To client: {"seq":0,"type":"response","request_seq":32,"command":"next","success":true,"body":{"allThreadsContinued":false}}
From client: threads(undefined)
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"createUserFields()","line_number":1379,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"updateOrderHeaderRequest()","line_number":586,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":3,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":4,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":5,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":6,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
To client: {"seq":0,"type":"response","request_seq":33,"command":"threads","success":true,"body":{"threads":[{"id":16,"name":"thread 16"}]}}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"createUserFields()","line_number":1379,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"updateOrderHeaderRequest()","line_number":586,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":3,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":4,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":5,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":6,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":34,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":1379,"column":0,"name":"createUserFields()"},{"id":1600001,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":586,"column":0,"name":"updateOrderHeaderRequest()"},{"id":1600002,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":491,"column":0,"name":"createUpdateRequest()"},{"id":1600003,"source":{"name":"updateOrderService.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\services\\sales\\updateOrderService.js","sourceReference":0},"line":22,"column":0,"name":"-anonymous-()"},{"id":1600004,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600005,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600006,"source":{[...]
From client: scopes({"frameId":1600000})
req -> {"uri":"/threads/16/frames/0/variables","method":"GET"}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"createUserFields()","line_number":1379,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"updateOrderHeaderRequest()","line_number":586,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":3,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":4,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":5,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":6,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":35,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":1379,"column":0,"name":"createUserFields()"},{"id":1600001,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":586,"column":0,"name":"updateOrderHeaderRequest()"},{"id":1600002,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":491,"column":0,"name":"createUpdateRequest()"},{"id":1600003,"source":{"name":"updateOrderService.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\services\\sales\\updateOrderService.js","sourceReference":0},"line":22,"column":0,"name":"-anonymous-()"},{"id":1600004,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600005,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600006,"source":{[...]
req: {"uri":"/threads/16/frames/0/variables","method":"GET","json":true}
res: {"_v":"2.0","count":64,"object_members":[{"name":"arguments","parent":"","scope":"local","type":"Object","value":"[object Arguments]"},{"name":"Calendar","parent":"","scope":"global","type":"function","value":"[JavaClass dw.util.Calendar]"},{"name":"COUNTRY_MAP","parent":"","scope":"global","type":"Object","value":"[object Object]"},{"name":"createAddress","parent":"","scope":"global","type":"Function","value":"\nfunction createAddress(service, orderAddress) {\n    var address = new service.Address();\n    var company = (orderAddress.companyName || \"\") + \" \" + (orderAddress.getCustom()[\"aptFloor\"] || \"\");\n    var iso3country = COUNTRY_MAP[orderAddress.countryCode.value.toUpperCase()];\n    address.setCity(orderAddress.city);\n    address.setCountryId(iso3country);\n    address.setFirstName(orderAddress.firstName);\n    address.setLastName(orderAddress.lastName);\n    address.setLine1(orderAddress.getCustom()[\"streetname\"]);\n    address.setLine2(company.trim());\n    address.setPhoneNumber(orderAddress.phone);\n    var titleId = (orderAddress.title === \"mr\") ? \"M\" : \"MME\";\n    address.setTitleId(titleId);\n    address.setZipCode(orderAddress.postalCode);\n    return address;\n}\n"},{"name":"createBillingStatus","parent":"","scope":"global","type":"Function","value":"\nfunction createBillingStatus(service) {\n    return new service.BillingStatus.fromValue(\"Pending\");\n}\n"},{"name":"createDeliveryType","parent":"","scope":"global","type":"Function","va[...]
To client: {"seq":0,"type":"response","request_seq":36,"command":"scopes","success":true,"body":{"scopes":[{"name":"local","variablesReference":1022,"expensive":false},{"name":"global","variablesReference":1023,"expensive":false}]}}
From client: variables({"variablesReference":1022})
To client: {"seq":0,"type":"response","request_seq":37,"command":"variables","success":true,"body":{"variables":[{"name":"arguments","type":"Object","value":"[object Arguments]","presentationHint":{"kind":"data"},"variablesReference":1024},{"name":"creditPayment","type":"boolean","value":"true","variablesReference":0},{"name":"fourDigits","type":"string","value":"0000","variablesReference":0},{"name":"isDepositCall","type":"undefined","value":"undefined","variablesReference":0},{"name":"order","type":"dw/order/Order","value":"[Order uuid=76e6958a84199d3cdf6a6a5551]","presentationHint":{"kind":"class"},"variablesReference":1025},{"name":"paymentInstrument","type":"undefined","value":"undefined","variablesReference":0},{"name":"paymentInstruments","type":"undefined","value":"undefined","variablesReference":0},{"name":"service","type":"iterable","value":"[JavaPackage webreferences2.SaleDocumentService]","variablesReference":0},{"name":"userField","type":"object","value":"[webreferences2.SaleDocumentService.UserField]","presentationHint":{"kind":"data"},"variablesReference":1026},{"name":"userFields","type":"object","value":"[webreferences2.SaleDocumentService.ArrayOfUserField]","presentationHint":{"kind":"data"},"variablesReference":1027}]}}
req -> {"uri":"/threads","method":"GET"}
From client: stepOut({"threadId":16})
req -> {"uri":"/threads/16/out","method":"POST"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"createUserFields()","line_number":1379,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"updateOrderHeaderRequest()","line_number":586,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":3,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":4,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":5,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":6,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
req: {"uri":"/threads/16/out","method":"POST","json":true}
res: {"_v":"2.0","id":16,"status":"running"}
req -> {"uri":"/threads","method":"GET"}
To client: {"seq":0,"type":"response","request_seq":38,"command":"stepOut","success":true,"body":{"allThreadsContinued":false}}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"updateOrderHeaderRequest()","line_number":588,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":3,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":4,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":5,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"step","threadId":16}}
From client: threads(undefined)
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"updateOrderHeaderRequest()","line_number":588,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":3,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":4,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":5,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
To client: {"seq":0,"type":"response","request_seq":39,"command":"threads","success":true,"body":{"threads":[{"id":16,"name":"thread 16"}]}}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"updateOrderHeaderRequest()","line_number":588,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":3,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":4,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":5,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":40,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":588,"column":0,"name":"updateOrderHeaderRequest()"},{"id":1600001,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":491,"column":0,"name":"createUpdateRequest()"},{"id":1600002,"source":{"name":"updateOrderService.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\services\\sales\\updateOrderService.js","sourceReference":0},"line":22,"column":0,"name":"-anonymous-()"},{"id":1600003,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600004,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600005,"source":{"name":"guard.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\scripts\\guard.js","sourceReference":0},"line":149,"column":0,"name":"-anonymous-()"}],"totalFrames":6}}
From client: scopes({"frameId":1600000})
req -> {"uri":"/threads/16/frames/0/variables","method":"GET"}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"updateOrderHeaderRequest()","line_number":588,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":3,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":4,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":5,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":41,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":588,"column":0,"name":"updateOrderHeaderRequest()"},{"id":1600001,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":491,"column":0,"name":"createUpdateRequest()"},{"id":1600002,"source":{"name":"updateOrderService.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\services\\sales\\updateOrderService.js","sourceReference":0},"line":22,"column":0,"name":"-anonymous-()"},{"id":1600003,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600004,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600005,"source":{"name":"guard.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\scripts\\guard.js","sourceReference":0},"line":149,"column":0,"name":"-anonymous-()"}],"totalFrames":6}}
req: {"uri":"/threads/16/frames/0/variables","method":"GET","json":true}
res: {"_v":"2.0","count":60,"object_members":[{"name":"arguments","parent":"","scope":"local","type":"Object","value":"[object Arguments]"},{"name":"Calendar","parent":"","scope":"global","type":"function","value":"[JavaClass dw.util.Calendar]"},{"name":"COUNTRY_MAP","parent":"","scope":"global","type":"Object","value":"[object Object]"},{"name":"createAddress","parent":"","scope":"global","type":"Function","value":"\nfunction createAddress(service, orderAddress) {\n    var address = new service.Address();\n    var company = (orderAddress.companyName || \"\") + \" \" + (orderAddress.getCustom()[\"aptFloor\"] || \"\");\n    var iso3country = COUNTRY_MAP[orderAddress.countryCode.value.toUpperCase()];\n    address.setCity(orderAddress.city);\n    address.setCountryId(iso3country);\n    address.setFirstName(orderAddress.firstName);\n    address.setLastName(orderAddress.lastName);\n    address.setLine1(orderAddress.getCustom()[\"streetname\"]);\n    address.setLine2(company.trim());\n    address.setPhoneNumber(orderAddress.phone);\n    var titleId = (orderAddress.title === \"mr\") ? \"M\" : \"MME\";\n    address.setTitleId(titleId);\n    address.setZipCode(orderAddress.postalCode);\n    return address;\n}\n"},{"name":"createBillingStatus","parent":"","scope":"global","type":"Function","value":"\nfunction createBillingStatus(service) {\n    return new service.BillingStatus.fromValue(\"Pending\");\n}\n"},{"name":"createDeliveryType","parent":"","scope":"global","type":"Function","va[...]
To client: {"seq":0,"type":"response","request_seq":42,"command":"scopes","success":true,"body":{"scopes":[{"name":"local","variablesReference":1028,"expensive":false},{"name":"global","variablesReference":1029,"expensive":false}]}}
From client: variables({"variablesReference":1028})
To client: {"seq":0,"type":"response","request_seq":43,"command":"variables","success":true,"body":{"variables":[{"name":"arguments","type":"Object","value":"[object Arguments]","presentationHint":{"kind":"data"},"variablesReference":1030},{"name":"creditPayment","type":"boolean","value":"true","variablesReference":0},{"name":"header","type":"object","value":"[webreferences2.SaleDocumentService.UpdateHeader]","presentationHint":{"kind":"data"},"variablesReference":1031},{"name":"order","type":"dw/order/Order","value":"[Order uuid=76e6958a84199d3cdf6a6a5551]","presentationHint":{"kind":"class"},"variablesReference":1032},{"name":"orderDate","type":"dw/util/Calendar","value":"[Calendar id=30070723]","presentationHint":{"kind":"class"},"variablesReference":1033},{"name":"service","type":"iterable","value":"[JavaPackage webreferences2.SaleDocumentService]","variablesReference":0}]}}
req -> {"uri":"/threads/reset","method":"POST"}
req -> {"uri":"/threads","method":"GET"}
From client: stepOut({"threadId":16})
req -> {"uri":"/threads/16/out","method":"POST"}
req: {"uri":"/threads/reset","method":"POST","json":true}
res: undefined
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"updateOrderHeaderRequest()","line_number":588,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"createUpdateRequest()","line_number":491,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":3,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":4,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":5,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
req: {"uri":"/threads/16/out","method":"POST","json":true}
res: {"_v":"2.0","id":16,"status":"halted"}
To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"step","threadId":16}}
To client: {"seq":0,"type":"response","request_seq":44,"command":"stepOut","success":true,"body":{"allThreadsContinued":false}}
From client: threads(undefined)
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"createUpdateRequest()","line_number":492,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":2,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":3,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
To client: {"seq":0,"type":"response","request_seq":45,"command":"threads","success":true,"body":{"threads":[{"id":16,"name":"thread 16"}]}}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"createUpdateRequest()","line_number":492,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":2,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":3,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":46,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":492,"column":0,"name":"createUpdateRequest()"},{"id":1600001,"source":{"name":"updateOrderService.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\services\\sales\\updateOrderService.js","sourceReference":0},"line":22,"column":0,"name":"-anonymous-()"},{"id":1600002,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600003,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600004,"source":{"name":"guard.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\scripts\\guard.js","sourceReference":0},"line":149,"column":0,"name":"-anonymous-()"}],"totalFrames":5}}
From client: scopes({"frameId":1600000})
req -> {"uri":"/threads/16/frames/0/variables","method":"GET"}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"createUpdateRequest()","line_number":492,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":2,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":3,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":47,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":492,"column":0,"name":"createUpdateRequest()"},{"id":1600001,"source":{"name":"updateOrderService.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\services\\sales\\updateOrderService.js","sourceReference":0},"line":22,"column":0,"name":"-anonymous-()"},{"id":1600002,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600003,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600004,"source":{"name":"guard.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\scripts\\guard.js","sourceReference":0},"line":149,"column":0,"name":"-anonymous-()"}],"totalFrames":5}}
req: {"uri":"/threads/16/frames/0/variables","method":"GET","json":true}
res: {"_v":"2.0","count":58,"object_members":[{"name":"arguments","parent":"","scope":"local","type":"Object","value":"[object Arguments]"},{"name":"Calendar","parent":"","scope":"global","type":"function","value":"[JavaClass dw.util.Calendar]"},{"name":"COUNTRY_MAP","parent":"","scope":"global","type":"Object","value":"[object Object]"},{"name":"createAddress","parent":"","scope":"global","type":"Function","value":"\nfunction createAddress(service, orderAddress) {\n    var address = new service.Address();\n    var company = (orderAddress.companyName || \"\") + \" \" + (orderAddress.getCustom()[\"aptFloor\"] || \"\");\n    var iso3country = COUNTRY_MAP[orderAddress.countryCode.value.toUpperCase()];\n    address.setCity(orderAddress.city);\n    address.setCountryId(iso3country);\n    address.setFirstName(orderAddress.firstName);\n    address.setLastName(orderAddress.lastName);\n    address.setLine1(orderAddress.getCustom()[\"streetname\"]);\n    address.setLine2(company.trim());\n    address.setPhoneNumber(orderAddress.phone);\n    var titleId = (orderAddress.title === \"mr\") ? \"M\" : \"MME\";\n    address.setTitleId(titleId);\n    address.setZipCode(orderAddress.postalCode);\n    return address;\n}\n"},{"name":"createBillingStatus","parent":"","scope":"global","type":"Function","value":"\nfunction createBillingStatus(service) {\n    return new service.BillingStatus.fromValue(\"Pending\");\n}\n"},{"name":"createDeliveryType","parent":"","scope":"global","type":"Function","va[...]
To client: {"seq":0,"type":"response","request_seq":48,"command":"scopes","success":true,"body":{"scopes":[{"name":"local","variablesReference":1034,"expensive":false},{"name":"global","variablesReference":1035,"expensive":false}]}}
From client: variables({"variablesReference":1034})
To client: {"seq":0,"type":"response","request_seq":49,"command":"variables","success":true,"body":{"variables":[{"name":"arguments","type":"Object","value":"[object Arguments]","presentationHint":{"kind":"data"},"variablesReference":1036},{"name":"order","type":"dw/order/Order","value":"[Order uuid=76e6958a84199d3cdf6a6a5551]","presentationHint":{"kind":"class"},"variablesReference":1037},{"name":"service","type":"iterable","value":"[JavaPackage webreferences2.SaleDocumentService]","variablesReference":0},{"name":"updateRequest","type":"object","value":"[webreferences2.SaleDocumentService.UpdateRequest]","presentationHint":{"kind":"data"},"variablesReference":1038}]}}
From client: stepOut({"threadId":16})
req -> {"uri":"/threads/16/out","method":"POST"}
req: {"uri":"/threads/16/out","method":"POST","json":true}
res: {"_v":"2.0","id":16,"status":"running"}
req -> {"uri":"/threads","method":"GET"}
To client: {"seq":0,"type":"response","request_seq":50,"command":"stepOut","success":true,"body":{"allThreadsContinued":false}}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"createUpdateRequest()","line_number":493,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":2,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":3,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"step","threadId":16}}
From client: threads(undefined)
req -> {"uri":"/threads","method":"GET"}
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"createUpdateRequest()","line_number":493,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":2,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":3,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
To client: {"seq":0,"type":"response","request_seq":51,"command":"threads","success":true,"body":{"threads":[{"id":16,"name":"thread 16"}]}}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"createUpdateRequest()","line_number":493,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":2,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":3,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"createUpdateRequest()","line_number":493,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":2,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":3,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":52,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":493,"column":0,"name":"createUpdateRequest()"},{"id":1600001,"source":{"name":"updateOrderService.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\services\\sales\\updateOrderService.js","sourceReference":0},"line":22,"column":0,"name":"-anonymous-()"},{"id":1600002,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600003,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600004,"source":{"name":"guard.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\scripts\\guard.js","sourceReference":0},"line":149,"column":0,"name":"-anonymous-()"}],"totalFrames":5}}
From client: scopes({"frameId":1600000})
req -> {"uri":"/threads/16/frames/0/variables","method":"GET"}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"createUpdateRequest()","line_number":493,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":2,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":3,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":53,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":493,"column":0,"name":"createUpdateRequest()"},{"id":1600001,"source":{"name":"updateOrderService.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\services\\sales\\updateOrderService.js","sourceReference":0},"line":22,"column":0,"name":"-anonymous-()"},{"id":1600002,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600003,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600004,"source":{"name":"guard.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\scripts\\guard.js","sourceReference":0},"line":149,"column":0,"name":"-anonymous-()"}],"totalFrames":5}}
From client: stepOut({"threadId":16})
req -> {"uri":"/threads/16/out","method":"POST"}
req: {"uri":"/threads/16/frames/0/variables","method":"GET","json":true}
res: {"_v":"2.0","count":58,"object_members":[{"name":"arguments","parent":"","scope":"local","type":"Object","value":"[object Arguments]"},{"name":"Calendar","parent":"","scope":"global","type":"function","value":"[JavaClass dw.util.Calendar]"},{"name":"COUNTRY_MAP","parent":"","scope":"global","type":"Object","value":"[object Object]"},{"name":"createAddress","parent":"","scope":"global","type":"Function","value":"\nfunction createAddress(service, orderAddress) {\n    var address = new service.Address();\n    var company = (orderAddress.companyName || \"\") + \" \" + (orderAddress.getCustom()[\"aptFloor\"] || \"\");\n    var iso3country = COUNTRY_MAP[orderAddress.countryCode.value.toUpperCase()];\n    address.setCity(orderAddress.city);\n    address.setCountryId(iso3country);\n    address.setFirstName(orderAddress.firstName);\n    address.setLastName(orderAddress.lastName);\n    address.setLine1(orderAddress.getCustom()[\"streetname\"]);\n    address.setLine2(company.trim());\n    address.setPhoneNumber(orderAddress.phone);\n    var titleId = (orderAddress.title === \"mr\") ? \"M\" : \"MME\";\n    address.setTitleId(titleId);\n    address.setZipCode(orderAddress.postalCode);\n    return address;\n}\n"},{"name":"createBillingStatus","parent":"","scope":"global","type":"Function","value":"\nfunction createBillingStatus(service) {\n    return new service.BillingStatus.fromValue(\"Pending\");\n}\n"},{"name":"createDeliveryType","parent":"","scope":"global","type":"Function","va[...]
To client: {"seq":0,"type":"response","request_seq":54,"command":"scopes","success":true,"body":{"scopes":[{"name":"local","variablesReference":1039,"expensive":false},{"name":"global","variablesReference":1040,"expensive":false}]}}
From client: variables({"variablesReference":1039})
To client: {"seq":0,"type":"response","request_seq":56,"command":"variables","success":true,"body":{"variables":[{"name":"arguments","type":"Object","value":"[object Arguments]","presentationHint":{"kind":"data"},"variablesReference":1041},{"name":"order","type":"dw/order/Order","value":"[Order uuid=76e6958a84199d3cdf6a6a5551]","presentationHint":{"kind":"class"},"variablesReference":1042},{"name":"service","type":"iterable","value":"[JavaPackage webreferences2.SaleDocumentService]","variablesReference":0},{"name":"updateRequest","type":"object","value":"[webreferences2.SaleDocumentService.UpdateRequest]","presentationHint":{"kind":"data"},"variablesReference":1043}]}}
req: {"uri":"/threads/16/out","method":"POST","json":true}
res: {"_v":"2.0","id":16,"status":"running"}
req -> {"uri":"/threads","method":"GET"}
To client: {"seq":0,"type":"response","request_seq":55,"command":"stepOut","success":true,"body":{"allThreadsContinued":false}}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"createUpdateRequest()","line_number":494,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":2,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":3,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"step","threadId":16}}
From client: threads(undefined)
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"createUpdateRequest()","line_number":494,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":2,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":3,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
To client: {"seq":0,"type":"response","request_seq":57,"command":"threads","success":true,"body":{"threads":[{"id":16,"name":"thread 16"}]}}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"createUpdateRequest()","line_number":494,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":2,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":3,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":58,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":494,"column":0,"name":"createUpdateRequest()"},{"id":1600001,"source":{"name":"updateOrderService.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\services\\sales\\updateOrderService.js","sourceReference":0},"line":22,"column":0,"name":"-anonymous-()"},{"id":1600002,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600003,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600004,"source":{"name":"guard.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\scripts\\guard.js","sourceReference":0},"line":149,"column":0,"name":"-anonymous-()"}],"totalFrames":5}}
From client: scopes({"frameId":1600000})
req -> {"uri":"/threads/16/frames/0/variables","method":"GET"}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"createUpdateRequest()","line_number":494,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":2,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":3,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":59,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":494,"column":0,"name":"createUpdateRequest()"},{"id":1600001,"source":{"name":"updateOrderService.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\services\\sales\\updateOrderService.js","sourceReference":0},"line":22,"column":0,"name":"-anonymous-()"},{"id":1600002,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600003,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600004,"source":{"name":"guard.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\scripts\\guard.js","sourceReference":0},"line":149,"column":0,"name":"-anonymous-()"}],"totalFrames":5}}
From client: stepOut({"threadId":16})
req -> {"uri":"/threads/16/out","method":"POST"}
req: {"uri":"/threads/16/frames/0/variables","method":"GET","json":true}
res: {"_v":"2.0","count":58,"object_members":[{"name":"arguments","parent":"","scope":"local","type":"Object","value":"[object Arguments]"},{"name":"Calendar","parent":"","scope":"global","type":"function","value":"[JavaClass dw.util.Calendar]"},{"name":"COUNTRY_MAP","parent":"","scope":"global","type":"Object","value":"[object Object]"},{"name":"createAddress","parent":"","scope":"global","type":"Function","value":"\nfunction createAddress(service, orderAddress) {\n    var address = new service.Address();\n    var company = (orderAddress.companyName || \"\") + \" \" + (orderAddress.getCustom()[\"aptFloor\"] || \"\");\n    var iso3country = COUNTRY_MAP[orderAddress.countryCode.value.toUpperCase()];\n    address.setCity(orderAddress.city);\n    address.setCountryId(iso3country);\n    address.setFirstName(orderAddress.firstName);\n    address.setLastName(orderAddress.lastName);\n    address.setLine1(orderAddress.getCustom()[\"streetname\"]);\n    address.setLine2(company.trim());\n    address.setPhoneNumber(orderAddress.phone);\n    var titleId = (orderAddress.title === \"mr\") ? \"M\" : \"MME\";\n    address.setTitleId(titleId);\n    address.setZipCode(orderAddress.postalCode);\n    return address;\n}\n"},{"name":"createBillingStatus","parent":"","scope":"global","type":"Function","value":"\nfunction createBillingStatus(service) {\n    return new service.BillingStatus.fromValue(\"Pending\");\n}\n"},{"name":"createDeliveryType","parent":"","scope":"global","type":"Function","va[...]
To client: {"seq":0,"type":"response","request_seq":60,"command":"scopes","success":true,"body":{"scopes":[{"name":"local","variablesReference":1044,"expensive":false},{"name":"global","variablesReference":1045,"expensive":false}]}}
From client: variables({"variablesReference":1044})
To client: {"seq":0,"type":"response","request_seq":62,"command":"variables","success":true,"body":{"variables":[{"name":"arguments","type":"Object","value":"[object Arguments]","presentationHint":{"kind":"data"},"variablesReference":1046},{"name":"order","type":"dw/order/Order","value":"[Order uuid=76e6958a84199d3cdf6a6a5551]","presentationHint":{"kind":"class"},"variablesReference":1047},{"name":"service","type":"iterable","value":"[JavaPackage webreferences2.SaleDocumentService]","variablesReference":0},{"name":"updateRequest","type":"object","value":"[webreferences2.SaleDocumentService.UpdateRequest]","presentationHint":{"kind":"data"},"variablesReference":1048}]}}
req: {"uri":"/threads/16/out","method":"POST","json":true}
res: {"_v":"2.0","id":16,"status":"running"}
req -> {"uri":"/threads","method":"GET"}
To client: {"seq":0,"type":"response","request_seq":61,"command":"stepOut","success":true,"body":{"allThreadsContinued":false}}
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"createUpdateRequest()","line_number":496,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":2,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":3,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"step","threadId":16}}
From client: threads(undefined)
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"createUpdateRequest()","line_number":496,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":2,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":3,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"createUpdateRequest()","line_number":496,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":2,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":3,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
To client: {"seq":0,"type":"response","request_seq":63,"command":"threads","success":true,"body":{"threads":[{"id":16,"name":"thread 16"}]}}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
From client: stackTrace({"threadId":16,"startFrame":0,"levels":20})
req -> {"uri":"/threads/16","method":"get"}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"createUpdateRequest()","line_number":496,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":2,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":3,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":64,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":496,"column":0,"name":"createUpdateRequest()"},{"id":1600001,"source":{"name":"updateOrderService.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\services\\sales\\updateOrderService.js","sourceReference":0},"line":22,"column":0,"name":"-anonymous-()"},{"id":1600002,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600003,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600004,"source":{"name":"guard.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\scripts\\guard.js","sourceReference":0},"line":149,"column":0,"name":"-anonymous-()"}],"totalFrames":5}}
From client: scopes({"frameId":1600000})
req -> {"uri":"/threads/16/frames/0/variables","method":"GET"}
req: {"uri":"/threads/16","method":"get","json":true}
res: {"_v":"2.0","call_stack":[{"index":0,"location":{"function_name":"createUpdateRequest()","line_number":496,"script_path":"/int_cegid_core/cartridge/scripts/helpers/saleWSHelper.js"}},{"index":1,"location":{"function_name":"-anonymous-()","line_number":22,"script_path":"/int_cegid_core/cartridge/scripts/services/sales/updateOrderService.js"}},{"index":2,"location":{"function_name":"updateOrder()","line_number":167,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":3,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":4,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}
To client: {"seq":0,"type":"response","request_seq":65,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":1600000,"source":{"name":"saleWSHelper.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\helpers\\saleWSHelper.js","sourceReference":0},"line":496,"column":0,"name":"createUpdateRequest()"},{"id":1600001,"source":{"name":"updateOrderService.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\services\\sales\\updateOrderService.js","sourceReference":0},"line":22,"column":0,"name":"-anonymous-()"},{"id":1600002,"source":{"name":"saleWSInterface.js","path":"c:\\workspace\\Celine\\cartridges\\int_cegid_core\\cartridge\\scripts\\interfaces\\saleWSInterface.js","sourceReference":0},"line":167,"column":0,"name":"updateOrder()"},{"id":1600003,"source":{"name":"Home.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\controllers\\Home.js","sourceReference":0},"line":23,"column":0,"name":"show()"},{"id":1600004,"source":{"name":"guard.js","path":"c:\\workspace\\Celine\\cartridges\\app_celine_controllers\\cartridge\\scripts\\guard.js","sourceReference":0},"line":149,"column":0,"name":"-anonymous-()"}],"totalFrames":5}}
From client: stepOut({"threadId":16})
req -> {"uri":"/threads/16/out","method":"POST"}
req: {"uri":"/threads/16/frames/0/variables","method":"GET","json":true}
res: {"_v":"2.0","count":60,"object_members":[{"name":"arguments","parent":"","scope":"local","type":"Object","value":"[object Arguments]"},{"name":"bankTransferPayment","parent":"","scope":"global","type":"boolean","value":"false"},{"name":"Calendar","parent":"","scope":"global","type":"function","value":"[JavaClass dw.util.Calendar]"},{"name":"COUNTRY_MAP","parent":"","scope":"global","type":"Object","value":"[object Object]"},{"name":"createAddress","parent":"","scope":"global","type":"Function","value":"\nfunction createAddress(service, orderAddress) {\n    var address = new service.Address();\n    var company = (orderAddress.companyName || \"\") + \" \" + (orderAddress.getCustom()[\"aptFloor\"] || \"\");\n    var iso3country = COUNTRY_MAP[orderAddress.countryCode.value.toUpperCase()];\n    address.setCity(orderAddress.city);\n    address.setCountryId(iso3country);\n    address.setFirstName(orderAddress.firstName);\n    address.setLastName(orderAddress.lastName);\n    address.setLine1(orderAddress.getCustom()[\"streetname\"]);\n    address.setLine2(company.trim());\n    address.setPhoneNumber(orderAddress.phone);\n    var titleId = (orderAddress.title === \"mr\") ? \"M\" : \"MME\";\n    address.setTitleId(titleId);\n    address.setZipCode(orderAddress.postalCode);\n    return address;\n}\n"},{"name":"createBillingStatus","parent":"","scope":"global","type":"Function","value":"\nfunction createBillingStatus(service) {\n    return new service.BillingStatus.fromValue(\"Pendi[...]
To client: {"seq":0,"type":"response","request_seq":66,"command":"scopes","success":true,"body":{"scopes":[{"name":"local","variablesReference":1049,"expensive":false},{"name":"global","variablesReference":1050,"expensive":false}]}}
From client: variables({"variablesReference":1049})
To client: {"seq":0,"type":"response","request_seq":68,"command":"variables","success":true,"body":{"variables":[{"name":"arguments","type":"Object","value":"[object Arguments]","presentationHint":{"kind":"data"},"variablesReference":1051},{"name":"order","type":"dw/order/Order","value":"[Order uuid=76e6958a84199d3cdf6a6a5551]","presentationHint":{"kind":"class"},"variablesReference":1052},{"name":"service","type":"iterable","value":"[JavaPackage webreferences2.SaleDocumentService]","variablesReference":0},{"name":"updateRequest","type":"object","value":"[webreferences2.SaleDocumentService.UpdateRequest]","presentationHint":{"kind":"data"},"variablesReference":1053}]}}
req: {"uri":"/threads/16/out","method":"POST","json":true}
res: {"_v":"2.0","id":16,"status":"halted"}
To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"step","threadId":16}}
To client: {"seq":0,"type":"response","request_seq":67,"command":"stepOut","success":true,"body":{"allThreadsContinued":false}}
From client: threads(undefined)
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"id":16,"status":"running"}]}
To client: {"seq":0,"type":"response","request_seq":69,"command":"threads","success":true,"body":{"threads":[]}}
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"id":16,"status":"running"}]}
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"updateOrder()","line_number":168,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":1,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"updateOrder()","line_number":168,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":1,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
req -> {"uri":"/threads/reset","method":"POST"}
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads/reset","method":"POST","json":true}
res: undefined
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"call_stack":[{"index":0,"location":{"function_name":"updateOrder()","line_number":168,"script_path":"/int_cegid_core/cartridge/scripts/interfaces/saleWSInterface.js"}},{"index":1,"location":{"function_name":"show()","line_number":23,"script_path":"/app_celine_controllers/cartridge/controllers/Home.js"}},{"index":2,"location":{"function_name":"-anonymous-()","line_number":149,"script_path":"/app_celine_controllers/cartridge/scripts/guard.js"}}],"id":16,"status":"halted"}]}
SqrTT commented 6 years ago

@suaterken thanks you for detailed log. I've found one place where the issue could occur. Could you please check if the issue is reproducible in 1.0.6?

thanks in advance.

SqrTT commented 6 years ago

any chance to get a feedback?

suaterken commented 6 years ago

I was trying to reproduce the issue again but no luck so far. I think latest version has fixed the issue. Thread can be closed for me Thanks

SqrTT commented 6 years ago

thanks a lot for your involvement.

ltomov commented 6 years ago

I have a page where breakpoints are almost never hit. This is even with the latest code.

What I've noticed is that this usually happens on pages that do some 3rd party calls - like httpclient.send() as mentioned above.

On this page there are 5-6 such calls, so it almost never hits a breakpoint, unless I set it before these calls.

What I noticed now is that I removed all breakpoints and the debugger again just stops and shows nothing. As if it hit some ghost breakpoint, but that breakpoint is not shown.

Here are the logs from the console:

1:54:31 PM, 4/23/2018 From client: initialize({"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"prophet","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us"}) To client: {"event":"prophet.getdebugger.config","type":"event","seq":1} From client: DebuggerConfig({"config":{"hostname":"xxx.demandware.net","username":"xxx","password":"xxx","code-version":"version2","configFilename":"/home/lacho/dev/tools/dw.json"},"cartridges":["/home/lacho/dev/sfcc-source/cartridges/modules","/home/lacho/dev/sfcc-source/cartridges/int_adyen_controllers","/home/lacho/dev/sfcc-source/cartridges/int_resources","/home/lacho/dev/sfcc-source/cartridges/bm_themedshoppinglists","/home/lacho/dev/sfcc-source/cartridges/bm_customfeeds","/home/lacho/dev/sfcc-source/cartridges/int_adyen","/home/lacho/dev/sfcc-source/cartridges/int_treazure","/home/lacho/dev/sfcc-source/cartridges/bm_hallmarks","/home/lacho/dev/sfcc-source/cartridges/bm_resources","/home/lacho/dev/sfcc-source/cartridges/int_customfeeds","/home/lacho/dev/sfcc-source/cartridges/int_test","/home/lacho/dev/sfcc-source/cartridges/app_sitegenesis_core","/home/lacho/dev/sfcc-source/cartridges/int_monitor_controllers","/home/lacho/dev/sfcc-source/cartridges/bm_recalls","/home/lacho/dev/sfcc-source/cartridges/int_bazaarvoice","/home/lacho/dev/sfcc-source/cartridges/bm_actionsignings","/home/lacho/dev/sfcc-source/cartridges/bc_library","/home/lacho/dev/sfcc-source/cartridges/bm_categoryassignments","/home/lacho/dev/sfcc-source/cartridges/bm_adyen","/home/lacho/dev/sfcc-source/cartridges/int_oil","/home/lacho/dev/sfcc-source/cartridges/int_hema","/home/lacho/dev/sfcc-source/cartridges/bm_attributevaluesorting","/home/lacho/dev/sfcc-source/cartridges/app_hema","/home/lacho/dev/sfcc-source/cartridges/int_masterdataapi","/home/lacho/dev/sfcc-source/cartridges/app_sitegenesis_controllers"]}) To client: {"seq":0,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"supportsConfigurationDoneRequest":true,"supportsEvaluateForHovers":false,"supportsFunctionBreakpoints":false,"supportsConditionalBreakpoints":false,"supportsHitConditionalBreakpoints":false,"supportsSetVariable":false,"supportsGotoTargetsRequest":false,"supportsRestartRequest":false,"supportsRestartFrame":false,"supportsExceptionInfoRequest":false,"supportsExceptionOptions":false,"supportsStepBack":false,"supportsValueFormattingOptions":true,"exceptionBreakpointFilters":[]}} To client: {"seq":0,"type":"response","request_seq":2,"command":"DebuggerConfig","success":true} From client: launch({"type":"prophet","request":"launch","name":"dev03 debug sfcc","hostname":"xxx.demandware.net","username":"xxx","password":"xxx","codeversion":"version1","cartridgeroot":"auto","workspaceroot":"/home/lacho/dev/","trace":true,"__sessionId":"6ab8b600-112e-4638-8645-7a7dba8165a6"}) To client: {"seq":0,"type":"response","request_seq":3,"command":"launch","success":true} To client: {"seq":0,"type":"event","event":"initialized"} To client: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"successfully connected\nconsole can be used to evaluate variables\nwaiting for breakpoint hit...\n"}} From client: configurationDone(undefined) To client: {"seq":0,"type":"response","request_seq":4,"command":"configurationDone","success":true} From client: threads(undefined) To client: {"seq":0,"type":"response","request_seq":5,"command":"threads","success":true,"body":{"threads":[]}} To client: {"seq":0,"type":"event","event":"thread","body":{"reason":"started","threadId":8}} To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"breakpoint","threadId":8}} From client: threads(undefined) From client: threads(undefined) To client: {"seq":0,"type":"response","request_seq":6,"command":"threads","success":true,"body":{"threads":[]}} To client: {"seq":0,"type":"response","request_seq":7,"command":"threads","success":true,"body":{"threads":[]}} To client: {"seq":0,"type":"event","event":"thread","body":{"reason":"exited","threadId":8}}

SqrTT commented 6 years ago

Hi, @ltomov. Please confirm you are using 1.0.6(or newer) version of the extension.

ltomov commented 6 years ago

Hi @SqrTT , I cannot find any information about what version I use... But it says there are no updates, so I believe it's the latest one. How can I verify this?

ltomov commented 6 years ago

Oh sorry, it's version 1.0.7, just saw it. Btw I updated my previous post to include more logs.

SqrTT commented 6 years ago

thanks for the info. Could you also set "verbose" : true in dw.json and provide more details?

thanks in advance.

ltomov commented 6 years ago

Yes, please see my first post: https://github.com/SqrTT/prophet/issues/92#issuecomment-383534629 I updated it with the verbose logs.

ltomov commented 6 years ago

Btw I think I found a workaround for this:

I set a breakpoint before the 3rd party HTTP calls are made - it hits it, then I press F5 again to resume, it waits for like 10-15 seconds and then manages to hit the other breakpoint. Which was previously impossible to hit.

I suspect it may have something to do with the fact that those 3rd party calls take some time, and it is as if the debugger does not wait enough time for them to complete... but this is just a wild guess.

SqrTT commented 6 years ago

I see no communication between debugger adapter and sandbox. Please make sure "verbose" is set true in dw.json (please note: "trace": true in launch.json is not enough)

ltomov commented 6 years ago

Hmm sorry, I may have messed something during the copy paste. Here is it again.

This is now hanging with no breakpoints set.

Verbose logs are written to:
/home/lacho/.vscode/extensions/SqrTT.prophet-1.0.7/prophet-debugger.log
2:32:02 PM, 4/23/2018
From client: initialize({"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"prophet","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us"})
To client: {"event":"prophet.getdebugger.config","type":"event","seq":1}
From client: DebuggerConfig({"config":{"hostname":"xxx.demandware.net","username":"xxx","password":"xxx*","code-version":"version2","verbose":true,"configFilename":"/home/lacho/dev/sfcc-source/cartridges/dw.json"},"cartridges":["/home/lacho/dev/sfcc-source/cartridges/modules","/home/lacho/dev/sfcc-source/cartridges/int_adyen_controllers","/home/lacho/dev/sfcc-source/cartridges/int_resources","/home/lacho/dev/sfcc-source/cartridges/bm_themedshoppinglists","/home/lacho/dev/sfcc-source/cartridges/bm_customfeeds","/home/lacho/dev/sfcc-source/cartridges/int_adyen","/home/lacho/dev/sfcc-source/cartridges/int_customfeeds","/home/lacho/dev/sfcc-source/cartridges/bm_hallmarks","/home/lacho/dev/sfcc-source/cartridges/int_treazure","/home/lacho/dev/sfcc-source/cartridges/bm_resources","/home/lacho/dev/sfcc-source/cartridges/int_test","/home/lacho/dev/sfcc-source/cartridges/app_sitegenesis_core","/home/lacho/dev/sfcc-source/cartridges/int_monitor_controllers","/home/lacho/dev/[...]
To client: {"seq":0,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"supportsConfigurationDoneRequest":true,"supportsEvaluateForHovers":false,"supportsFunctionBreakpoints":false,"supportsConditionalBreakpoints":false,"supportsHitConditionalBreakpoints":false,"supportsSetVariable":false,"supportsGotoTargetsRequest":false,"supportsRestartRequest":false,"supportsRestartFrame":false,"supportsExceptionInfoRequest":false,"supportsExceptionOptions":false,"supportsStepBack":false,"supportsValueFormattingOptions":true,"exceptionBreakpointFilters":[]}}
To client: {"seq":0,"type":"response","request_seq":2,"command":"DebuggerConfig","success":true}
From client: launch({"type":"prophet","request":"launch","name":"dev03 debug sfcc","hostname":"xxx.demandware.net","username":"xxx","password":"xxx*","codeversion":"version1","cartridgeroot":"auto","workspaceroot":"/home/lacho/dev/","trace":true,"__sessionId":"2b6b36cb-5d82-4895-adac-c42731edb057"})
req -> {"uri":"/breakpoints","method":"DELETE"}
req: {"uri":"/breakpoints","method":"DELETE","json":true}
res: undefined
To client: {"seq":0,"type":"response","request_seq":3,"command":"launch","success":true}
To client: {"seq":0,"type":"event","event":"initialized"}
To client: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"successfully connected\nconsole can be used to evaluate variables\nwaiting for breakpoint hit...\n"}}
successfully connected
console can be used to evaluate variables
waiting for breakpoint hit...
From client: configurationDone(undefined)
To client: {"seq":0,"type":"response","request_seq":4,"command":"configurationDone","success":true}
From client: threads(undefined)
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0"}
To client: {"seq":0,"type":"response","request_seq":5,"command":"threads","success":true,"body":{"threads":[]}}
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"id":8,"status":"running"}]}
To client: {"seq":0,"type":"event","event":"thread","body":{"reason":"started","threadId":8}}
To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"breakpoint","threadId":8}}
From client: threads(undefined)
req -> {"uri":"/threads","method":"GET"}
From client: threads(undefined)
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"id":8,"status":"running"}]}
To client: {"seq":0,"type":"response","request_seq":6,"command":"threads","success":true,"body":{"threads":[]}}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"id":8,"status":"running"}]}
To client: {"seq":0,"type":"response","request_seq":7,"command":"threads","success":true,"body":{"threads":[]}}
req -> {"uri":"/threads","method":"GET"}
req: {"uri":"/threads","method":"GET","json":true}
res: {"_v":"2.0","script_threads":[{"id":8,"status":"running"}]}
SqrTT commented 6 years ago

@ltomov Could you please update the extension to 1.0.8 and check if the issue is fixed for you?

ltomov commented 6 years ago

Yes, the latest version seems to fix it!

This issue had been killing me for a long time, a million thanks for fixing it! :)

SqrTT commented 6 years ago

thank you for bringing light to steps to reproduce

vinceroti commented 6 years ago

Can you please add this to the readme? I had the same issue of the .project in the root folder and it took me a day to find this thread. It would be helpful to have an FAQ of issues/fixes.

goc-nikul commented 1 year ago

Hello

Version Detail Version: 1.80.1 (user setup) Commit: 74f6148eb9ea00507ec113ec51c489d6ffb4b771 Date: 2023-07-12T17:22:07.651Z Electron: 22.3.14 ElectronBuildId: 21893604 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Windows_NT x64 10.0.22621

Plugin installed Salesforce Commerce Cloud Productivity Pack

I am getting below error while debug.

To client: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"TypeError: Cannot read properties of undefined (reading 'map')\n TypeError: Cannot read properties of undefined (reading 'map')\n at c:\Users\xxxxxx\.vscode\extensions\sqrtt.prophet-1.4.40\dist\mockDebug.js:1:29557\n at c:\Users\xxxxxx\.vscode\extensions\sqrtt.prophet-1.4.40\dist\mockDebug.js:1:28332\n at new Promise ()\n at c:\Users\xxxxxx\.vscode\extensions\sqrtt.prophet-1.4.40\dist\mockDebug.js:1:28311\n at process.processTicksAndRejections (node:internal/process/task_queues:96:5)"}} TypeError: Cannot read properties of undefined (reading 'map') TypeError: Cannot read properties of undefined (reading 'map') at c:\Users\xxxxxx.vscode\extensions\sqrtt.prophet-1.4.40\dist\mockDebug.js:1:29557 at c:\Users\xxxxxx.vscode\extensions\sqrtt.prophet-1.4.40\dist\mockDebug.js:1:28332 at new Promise () at c:\Users\xxxxxx.vscode\extensions\sqrtt.prophet-1.4.40\dist\mockDebug.js:1:28311 at process.processTicksAndRejections (node:internal/process/task_queues:96:5) To client: {"seq":0,"type":"response","request_seq":4,"command":"setBreakpoints","success":true,"body":{"breakpoints":[]}} From client: configurationDone(undefined) To client: {"seq":0,"type":"response","request_seq":5,"command":"configurationDone","success":true} From client: threads(undefined) req -> {"uri":"/threads","method":"GET"} req: {"uri":"/threads","method":"GET"} res: "<a href=\"/s/-/dw/debugger/v2_0/threads\">Moved Permanently.\n\n" log -> retriesLeft: 3 req -> {"uri":"/threads","method":"GET"} req: {"uri":"/threads","method":"GET"} res: "<a href=\"/s/-/dw/debugger/v2_0/threads\">Moved Permanently.\n\n" log -> retriesLeft: 2 req -> {"uri":"/threads","method":"GET"} req: {"uri":"/threads","method":"GET"} res: "<a href=\"/s/-/dw/debugger/v2_0/threads\">Moved Permanently.\n\n" To client: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"SyntaxError: Unexpected token '<', \"<a href=\"/\"... is not valid JSON\n SyntaxError: Unexpected token '<', \"<a href=\"/\"... is not valid JSON\n at JSON.parse ()\n at c:\Users\xxxxxx\.vscode\extensions\sqrtt.prophet-1.4.40\dist\mockDebug.js:1:28346\n at new Promise ()\n at c:\Users\xxxxxx\.vscode\extensions\sqrtt.prophet-1.4.40\dist\mockDebug.js:1:28311\n at process.processTicksAndRejections (node:internal/process/task_queues:96:5)"}} SyntaxError: Unexpected token '<', "<a href="/"... is not valid JSON SyntaxError: Unexpected token '<', "<a href="/"... is not valid JSON at JSON.parse () at c:\Users\xxxxxx.vscode\extensions\sqrtt.prophet-1.4.40\dist\mockDebug.js:1:28346 at new Promise () at c:\Users\xxxxxx.vscode\extensions\sqrtt.prophet-1.4.40\dist\mockDebug.js:1:28311 at process.processTicksAndRejections (node:internal/process/task_queues:96:5) req -> {"uri":"/threads","method":"GET"} req: {"uri":"/threads","method":"GET"} res: "<a href=\"/s/-/dw/debugger/v2_0/threads\">Moved Permanently.\n\n" log -> retriesLeft: 3 req -> {"uri":"/threads","method":"GET"} req: {"uri":"/threads","method":"GET"} res: "<a href=\"/s/-/dw/debugger/v2_0/threads\">Moved Permanently.\n\n" log -> retriesLeft: 2 req -> {"uri":"/threads","method":"GET"} req: {"uri":"/threads","method":"GET"} res: "<a href=\"/s/-/dw/debugger/v2_0/threads\">Moved Permanently.\n\n" To client: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"SyntaxError: Unexpected token '<', \"<a href=\"/\"... is not valid JSON\n SyntaxError: Unexpected token '<', \"<a href=\"/\"... is not valid JSON\n at JSON.parse ()\n at c:\Users\xxxxxx\.vscode\extensions\sqrtt.prophet-1.4.40\dist\mockDebug.js:1:28346\n at new Promise ()\n at c:\Users\xxxxxx\.vscode\extensions\sqrtt.prophet-1.4.40\dist\mockDebug.js:1:28311\n at process.processTicksAndRejections (node:internal/process/task_queues:96:5)"}} SyntaxError: Unexpected token '<', "<a href="/"... is not valid JSON SyntaxError: Unexpected token '<', "<a href="/"... is not valid JSON at JSON.parse () at c:\Users\xxxxxx.vscode\extensions\sqrtt.prophet-1.4.40\dist\mockDebug.js:1:28346 at new Promise () at c:\Users\xxxxxx.vscode\extensions\sqrtt.prophet-1.4.40\dist\mockDebug.js:1:28311 at process.processTicksAndRejections (node:internal/process/task_queues:96:5) req -> {"uri":"/threads","method":"GET"} req: {"uri":"/threads","method":"GET"} res: "<a href=\"/s/-/dw/debugger/v2_0/threads\">Moved Permanently.\n\n" log -> retriesLeft: 3 req -> {"uri":"/threads","method":"GET"} req: {"uri":"/threads","method":"GET"} res: "<a href=\"/s/-/dw/debugger/v2_0/threads\">Moved Permanently.\n\n" log -> retriesLeft: 2 req -> {"uri":"/threads","method":"GET"} req: {"uri":"/threads","method":"GET"} res: "<a href=\"/s/-/dw/debugger/v2_0/threads\">Moved Permanently.\n\n" To client: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"SyntaxError: Unexpected token '<', \"<a href=\"/\"... is not valid JSON\n SyntaxError: Unexpected token '<', \"<a href=\"/\"... is not valid JSON\n at JSON.parse ()\n at c:\Users\xxxxxx\.vscode\extensions\sqrtt.prophet-1.4.40\dist\mockDebug.js:1:28346\n at new Promise ()\n at c:\Users\xxxxxx\.vscode\extensions\sqrtt.prophet-1.4.40\dist\mockDebug.js:1:28311\n at process.processTicksAndRejections (node:internal/process/task_queues:96:5)"}} SyntaxError: Unexpected token '<', "<a href="/"... is not valid JSON SyntaxError: Unexpected token '<', "<a href="/"... is not valid JSON at JSON.parse () at c:\Users\xxxxxx.vscode\extensions\sqrtt.prophet-1.4.40\dist\mockDebug.js:1:28346 at new Promise () at c:\Users\xxxxxx.vscode\extensions\sqrtt.prophet-1.4.40\dist\mockDebug.js:1:28311 at process.processTicksAndRejections (node:internal/process/task_queues:96:5) req -> {"uri":"/threads","method":"GET"} req: {"uri":"/threads","method":"GET"} res: "<a href=\"/s/-/dw/debugger/v2_0/threads\">Moved Permanently.\n\n" From client: disconnect({"restart":false}) To client: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"Disconnecting...\n"}} Disconnecting... To client: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"successfully disconnected\n"}} successfully disconnected To client: {"seq":0,"type":"response","request_seq":7,"command":"disconnect","success":true}

Thank you in Advance.

goc-nikul commented 1 year ago

Hi @SqrTT

It is solved now. that was issue with host name.