On Tue, May 7, 2013 at 7:43 PM, Shree Devi Kumar <[email protected]>wrote:

> Anyway, That was the reason for wanting to follow the program in VS2008.
> If you know of some instructions/tutorial to do that and can point me to
> it, that will be great.


Visual Studio is generally agreed to have the state of the art debugger
(even by people who otherwise hate programming on Windows). It's really not
that hard to use. Other than my "Debugging Tips" [1] in the docs you
referred to earlier which is more specific to stepping into Leptonica code
(you probably don't need to do this for your particular problem), I'd say
just:

1) Make sure you build the Solution using the LIB_DEBUG configuration.

2) Set the application you want to debug by right clicking on its Project
and choosing "Set as Startup Project".

3) Right-click that project and choose Properties, to see its Property
Pages.

   a) In the Debugging section, set "Command Arguments" and maybe "Working
Directory"

4) In the file your interested in, click on the left margin to set a
breakpoint at that line.

5) Hit <F5> to start debugging. Or just right click the Project, choose
Debug -> Step Into new instance.

Lots more details about debugging with Visual Studio can be found via
Google.

That said, tesseract is *very* complicated code with little implementation
documentation. I know from personal experience that trying to figure out
how it works by reading the code and stepping through it can be extremely
painful. The training parts of tesseract are even less documented, use
proprietary training files, and there are hints in the dev mailing list
that significant changes are in the works.

I eventually gave up, partly because I don't particularly have any interest
in custom OCR. My main interest is supporting the Leptonica Image
Processing library on Windows, and I volunteered to create a better Visual
Studio solution for tesseract (since it is one of the most popular client
apps).

[1]
http://tesseract-ocr.googlecode.com/svn/trunk/vs2008/doc/programming.html#debugging-tips

-- 
-- 
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to