-
Hello again :) We are continuing our evaluation of the web version of COSMOS. It seems to happen quite often that we see the UI-level bugs that are not easy to report or reproduce. We have confidence that we could investigate and debug some of the bugs or at least report them properly with additional debugging information. A typical example: we see the 400 and 500 errors in the browser console in several use cases. We would like to know if the developers of COSMOS could share information about their typical development and debugging workflows that we could adopt in order to be more efficient in detecting and reporting all the issues that we see. Specifically:
Again, if there is a focused knowledge about the debugging topic, based on your advice, we would be happy to send a patch to the COSMOS documentation to explain the know-hows. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, On the surface, one thing that can help a lot in addition to the browser console is the network tab in the browser dev tools. This will show you the actual response from the web server (e.g. was it json with an error message? html page? etc), in addition to any headers and all other data related to the request that returned a 400 or 500. However, the dev tools must already be open when the error occurs in order for this network data to be captured, so I typically just leave that open in the background at all times while I'm working on COSMOS. You can also use a tool like Postman to modify and repeat these XHR requests against the API, but this is something I haven't actually done much with COSMOS. COSMOS 5 makes use of import map overrides, which can also be useful for debugging. This allows you to serve a COSMOS tool locally instead of from the COSMOS installation in Docker (while still using the backend and core frontend app from Docker), so you can temporarily write in some debugging code and bypass the normal build rules (such as no-console). You can even do this with a remote installation of COSMOS as of 27c3737
Lastly, backend logs are always useful, and they can be accessed by running Hope this helps |
Beta Was this translation helpful? Give feedback.
Hello,
On the surface, one thing that can help a lot in addition to the browser console is the network tab in the browser dev tools. This will show you the actual response from the web server (e.g. was it json with an error message? html page? etc), in addition to any headers and all other data related to the request that returned a 400 or 500. However, the dev tools must already be open when the error occurs in order for this network data to be captured, so I typically just leave that open in the background at all times while I'm working on COSMOS. You can also use a tool like Postman to modify and repeat these XHR requests against the API, but this is something I haven't actually done m…