Hi, I try to debug a rest app ACF endpoint. I woul...
# cfml-general
m
Hi, I try to debug a rest app ACF endpoint. I would like to have debug output for rest call to have all queries made by the endpoint in cfdebug output style. Can I activate somehow debug output for rest or cfc calls?(I know that it was discontinued after cf9). Do I have to use forcely seefusion or fusion reactor ?
m
Hi Mauro, do you have the Performance Monitoring Tool set up? It comes free in CF since 2016. You can also use the sandbox to test. This is assuming you have administrator access.
m
Hello Mark, thank you for your response... I am not aware of how to debug with a sandbox ... I would like to try performance monitoring tool but I cannot find any link to the installer ColdFusion_2021_PerformanceMonitoringToolset_WWEJ_Win64.exe ... I don't know if It has the granularity to test single endpoint simply. It is a pity that what it was a simple task before, it is now so complicated :-)
m
so a few questions, do you have the following turned on?
That's in CF administrator, Debugging & Logging, Debug Output Settings
The sandbox is turned on here:
"playground" I guess I should say
m
… I know the playground (a swagger ) but I have not the infos that I search .. I would like to know simply wich queries are executed by a rest endpoint … Do you have some link to the monitor installer (I cannot find it) thank you
m
Wait. Do you own the REST endpoint?
If it is your endpoint, you should be able to see the code that is attached to that endpoint, right?
If it is someone else's endpoint, the internal queries are not exposed. That is not how REST works.
m
Yes, I can test with writedump, cftrace, cflog etc But it is not like to have the debugging output built in … Maybe I am the only one dreaming of that …
m
ah I see. yeah, unfortunately, rest is decoupled from the source in terms of debugging. you can see which things fired by the timing in PMT, but on a site with a lot of churn, that isn't that useful.
m
.. can you tell me where I can find the PMT installer, please… I would like give it a try … thank you Mark
m
m
thank you Mark
👍 1