Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to debug the application locally #218

Open
aslary opened this issue Jul 22, 2020 · 5 comments
Open

How to debug the application locally #218

aslary opened this issue Jul 22, 2020 · 5 comments

Comments

@aslary
Copy link

aslary commented Jul 22, 2020

After digging through the docs of Claudia and AWS, I am still not able to setup a local environment, in which I can debug the application. I am using the Claudia API Builder for the REST methods.

Claudia is great for simple deployment, but how can I debug my app locally?

I have seen this: https://claudiajs.com/tutorials/testing-locally.html, but my goal is really to analyse my program line by line with the debugger.

@dmackinn
Copy link

dmackinn commented Aug 6, 2020

@aslary have you tried using claudia-local-api ?
https://www.npmjs.com/package/claudia-local-api

You can run Claudia locally like an express app during development. Here is an npm script that I use to run mine
"start-local": "nodemon --exec claudia-local-api --api-module api.js --port 2932 | bunyan --output short",

@rcoundon
Copy link

rcoundon commented Aug 6, 2020

After digging through the docs of Claudia and AWS, I am still not able to setup a local environment, in which I can debug the application. I am using the Claudia API Builder for the REST methods.

Claudia is great for simple deployment, but how can I debug my app locally?

I have seen this: https://claudiajs.com/tutorials/testing-locally.html, but my goal is really to analyse my program line by line with the debugger.

Something else you could consider is Thundra.io - they have tools for allowing you to attach a debugger to a lambda function as it's actually running in AWS.

@rcoundon
Copy link

rcoundon commented Aug 6, 2020

@dmackinn - have you found a way to attach a debugger to the process being run by claudia-local-api?

@dmackinn
Copy link

dmackinn commented Aug 6, 2020

@rcoundon For local development using claudia-local-api it runs just like an express server and you can console.log anywhere in the app.

@rcoundon
Copy link

rcoundon commented Aug 6, 2020

@dmackinn Yeah, I've used it, just haven't managed to attach a live debugger so was wondering if anyone had.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants