| Author |
Message |
< Erlang ~ Starting Debugger in Program, not in shell |
| chmaruni |
Posted: Thu Mar 18, 2010 11:34 am |
|
|
|
Joined: 07 Oct 2009
Posts: 4
|
Hi,
I have some problems using the debugger. They might or might not be related.
To start, I use an Emakefile that looks something like this:
Code:
{ './src/*', [debug_info, {pa,".."},
{ i, "./include" },
{ outdir, "./ebin" }
]}.
and compile it with erl -make. So I am pretty sure that I include the debug info into the .beam file (oh, and I use a current Erlang R13B04).
If I now try to open the debugger in the shell with
Code:
Eshell V5.7.5 (abort with ^G)
1> im().
<0.34.0>
2> ii(analyzer).
** Invalid beam file or no abstract code: analyzer
error
3>
where 'analyzer' is a module of mine, you see that it doesn't work. The debugger window pops up as expected, but the error message sounds as if the beam file doesn't contain debugging info...
I obviously don't want to do a c(analyzer,[debug_info]) manually every time, so I hope that the erlang make tool can do that! I tried the debugger with a little toy project and a manual c(mymodule, [deebug_info]). on the terminal before which worked fine. But as I understand it, erl -make should work just as well, right? otherwise, this debug_info stuff in the Emakefile would be rather useless... I also would prefer to not use ecc +debug_info in a makefile because I'd like to avoid having an extra makefile unless I really have to (so I didn't try this option and couldn't tell you whether that works or not...)
My second question is whether it's possible to start the debugger from inside a program; so not from the shell. I start eunit to execute some tests and I tried to programmatically start a debugger and set a breakpoint in a test-function:
Code:
some_test() ->
i:im(),
i:ii(analyzer),
i:iaa([init]),
i:ib(analyzer, analyze, 2),
analyzer:analyze(one, two).
In this case, the debugger window opened but is closed again right away. I didn't see any error messages, but it could be that eunit just swallowed them. So it may very well be that this problem is exactly the same as the above, namely that the debugger cannot attach to the analyzer module and the test therefore executes normally without hitting the breakpoint. But I have no idea, to be honest...
Help would be appreciated!
Thanks
Christoph |
|
|
| Back to top |
|
| wuji |
Posted: Sat Aug 11, 2012 1:19 am |
|
|
|
User
Joined: 10 Aug 2012
Posts: 654
|
too high, you need to move quickly because the window window [h2]cheap designer *beep*[/h2] window to appeal is usually very short. Depending on
rules where you live, you will only have 30 to to cheap louboutins to 120 days to let the local government know you
to appeal. Send your appeal application by certified mail or or replica designer bags for sale or hand deliver it and get it stamped, so you
have proof that it arrived by the deadline.Follow the tax tax Cheap Ralph Lauren Shirts tax office's appeal instructions to a T, so your case
be thrown out on a technicality. The first step step [h1]cheap Ralph Lauren Polo[/h1] step is to ask your city or county tax assessor's
for the materials it used to evaluate your property. As As Christian Louboutin Outlet As an example, in Washington, D.C., where I live, the |
|
|
| Back to top |
|
| dongdongwu |
Posted: Thu Sep 20, 2012 5:35 am |
|
|
|
User
Joined: 19 Sep 2012
Posts: 236
|
His good friend Diane said: "Christian Louboutin Men Shoes was a magician, he make shoes is immediately put his female people with legs and advantage. He understands women wanted to do and can make them into beautiful Cinderella." Madonna often in its concert wearing Christian louboutin high heels , and some famous superstar like Angelina jolie, mariah Carey, beyonce Knowles, the famous Japanese singer YaYouMei Hamasaki helps Christian Louboutin Men Shoes set up its powerful position. The youngest customers will count Tom cruise's daughter sully cruz. Louboutin made for only a pair of handmade Christian Louboutin high heel Shoes! Want to be more fashion? Put on Christian Louboutin Outlet !
Candy colors of the chalaza high-heeled shoes with lolita type allure, set full finely gem blue "neon shoes" is to need to use "sexy" to describe. Each pair are worth careful appreciation of lithe and graceful fairy ludaoli, what kind of most let you move?Christian Louboutin Men Shoes that one brush red is always cannot resist the temptation, Christian Louboutin men outlet continue to use the days of high 8cm above slender heel proclaim the sexy and luxuriant. The bowknot on black pointed high-heeled shoes with sharp rivet concomitant, wild python met enchanting color printing grain, It is that pairs of high-heeled shoes lets Carrie more feminine flavour. Like Christian Louboutin for men her word. |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|