Comments (20)
Excellent point. I will look at the best way to support this. Hope to have a solution for you before long.
from revel.
FYI, in the meantime, after Revel generates your app, you can just do:
- go build -o bin/myapp import/path/to/myapp/app/tmp
- run gdb on the binary bin/myapp.
- Pass in flags "-importPath", "-srcPath", "-runMode"
from revel.
Could you give me some details on the value for the 3 flags ? I tried to put my $GOPATH for the first two and "dev" for the runMode but I got :
2012/10/28 17:31:15 revel.go:90: Failed to load app.conf: not found
Thank you.
from revel.
importPath is the import path to your base app directory. For example, for the booking sample app, it would be "github.com/robfig/revel/samples/booking".
srcPath should be $GOPATH/src, but you don't actually need to specify it in this case.
from revel.
This works perfectly, thanks !
from revel.
I have really been putting this one off apparently :)
Implementing a revel debug
command that drops the user into the gdb session in the console is probably the way to go.. I guess there is no equivalent on windows
from revel.
FWIW minGW is a way to get GDB in windows.
On Mar 24, 2013 12:05 PM, "Rob Figueiredo" [email protected] wrote:
I have really been putting this one off apparently :)
Implementing a revel debug command that drops the user into the gdb
session in the console is probably the way to go.. I guess there is no
equivalent on windowsβ
Reply to this email directly or view it on GitHubhttps://github.com/robfig/revel/issues/33#issuecomment-15366140
.
from revel.
@robfig would revel debug
build the app and run gdb
on the executable with the appropriate flags set? If not how were you envisioning the implementation? Just curious, would love to submit a PR for this.
from revel.
I think so -- at any rate, that seems like the first step. I could imagine a more gold-plated solution where we add a servlet to the harness so that the developer could go to a special URL, select an action that they want to debug and have Revel place the breakpoint there on their behalf. That seems like too much work for now though :)
(I'm a print debugger, so this workflow is alien to me. It probably won't get implemented without someone's vision and assistance. I am happy to support however I can, though!)
from revel.
@robfig I'm working on this! I'll be rather quiet the next two weeks though, I have to head out for my Annual Training and I'll be lucky to be near a computer.
from revel.
Hey guys, any luck on this? Loving Revel though
from revel.
I'm also very interested in the debug command for revel! Is there a branch that you've started to work through the revel debug? Otherwise I can fork and begin build the command.
from revel.
I don't think anyone has worked on this
from revel.
Yeah, I got caught up in other work and with the Military, so I didn't make much headway :/
from revel.
As another option for debugging, has anyone every checked out hopwatch? I know it would be another dependency, but since Revel already has the web-view based concept of seeing your tracebacks, and has all the endpoints for modules, it might be neat: https://github.com/emicklei/hopwatch
from revel.
This one looks even better
https://github.com/sirnewton01/godbg
from revel.
Wow that is really awesome
On Mon, Sep 9, 2013 at 11:40 AM, Rob Figueiredo [email protected]:
This one looks even better
https://github.com/sirnewton01/godbgβ
Reply to this email directly or view it on GitHubhttps://github.com/robfig/revel/issues/33#issuecomment-24032451
.
from revel.
from revel.
Debugging Revel apps with gdb
is a common request needing an official answer.
TODO
- Official guide on how to debug Revel code
- Enhancements to facilitate easy debugging (
revel debug
, IDE integration, etc)
from revel.
Closing - docs have intellij debugging now
from revel.
Related Issues (20)
- Can't quickstart a project HOT 1
- no required module provides package github.com/bradfitz/gomemcache/memcache; to add it: HOT 3
- Golang Revel config gqlgen
- could not clone the Skeleton source code HOT 2
- Unconditional recursive call
- please help me , I am trying the REVEL for first time
- Failed to import package=github.com/garyburd/redigo/redis HOT 3
- panic in "concurrent map read and map write" HOT 3
- Is the framework still actively being developed? HOT 5
- support video playοΌ HOT 3
- Problem with Go 1.18 HOT 2
- Can't get jobs module to work
- Go Imagick
- revel.AppLog.*f locate line error
- Getting ERR_HTTP2_PROTOCOL_ERROR after updating SSL certifcates. HOT 1
- timeago lang configuration HOT 7
- Getting error in Starting revel application HOT 1
- Vulnerability of dependency "golang.org/x/net, golang.org/x/sys"
- Will this framework continue to be updated in the future HOT 1
- no reachable servers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from revel.