[Soot-list] Print Statements from Custom Flow Analysis Not Appearing

Eric Bodden eric.bodden at ec-spride.de
Thu Feb 23 03:17:09 EST 2012


Hi Josh.

I think the problem is that you may not use System.out. Instead you
must use G.v().out as the output stream. When you use this stream
within Eclipse, things will be printed to the Eclipse console. When
you use the same stream while running Soot from the command line then
your output will be printed there.

Eric

On 23 February 2012 00:33, Josh Branchaud <jbranchaud at gmail.com> wrote:
> Hi,
>
> I am rather new to using Soot. I have the Soot (2.5.1) plug-in installed in
> Eclipse and that is how I plan to use it (at least for the time being). I
> have basically recreated the dominator analysis (which is found in
> soot.toolkits.graph) calling it MyFirstAnalysis.java and subsequently
> inserted a bunch of print statements in the code so that I can see what is
> happening as the analysis progresses. Inside that class I have also included
> a main method which I am using to deploy my analysis with Soot. I then go to
> Eclipse's package explorer view, right click on a simple Jimple file that I
> have created, and choose to run Soot... with it. Under the Soot main class
> tab, I feed it the appropriate location of my main method class
> (core.MyFirstAnalysis) and the project it is in. I click run and it seems to
> run fine. The only problem is that none of the print statements I expected
> are printed to the console. The only thing that shows up in the console is
> the standard soot output that tells me that the analysis is being run on the
> class, the execution time, etc.
>
> I was hoping to use print statements in my code to better understand how
> things are working. Is this possible? Any ideas what I have done wrong here?
>
> I appreciate any help.
>
> --
> Josh Branchaud
> Graduate Research Assistant, University of Nebraska-Lincoln
> jbranchaud at gmail.com - (402) 660-1656
> Website: cse.unl.edu/~jbrancha
>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>



-- 
Eric Bodden, Ph.D., http://bodden.de/
Head of Secure Software Engineering Group at EC SPRIDE
Principal Investigator in Secure Services at CASED
Tel: +49 6151 16-75422    Fax: +49 6151 16-72051
Room 3.2.14, Mornewegstr. 30, 64293 Darmstadt


More information about the Soot-list mailing list