+ Reply to Thread
Results 1 to 5 of 5

Thread: Why does the console not throw back exception stacks? am i missing something? r11.2

  1. #1
    Robert Hexter
    Join Date
    Mar 2012
    Posts
    78
    Points
    5
    Answers Provided
    1


    0

    Default Why does the console not throw back exception stacks? am i missing something? r11.2

    I'm finding that I run a script that has an error in it but it appears the exception that is being thrown is not being passed back into the console.
    It just sits there silently, it makes debugging very difficult.

    Am I missing a way to turn this type of feedback on?

  2. #2
    Matthias Buehler

    Join Date
    Oct 2011
    Posts
    1,676
    Points
    438
    Answers Provided
    140


    0

    Default Re: Why does the console not throw back exception stacks? am i missing something? r11

    Hi,


    if you double click the error in the Log Window you'll find a stack trace.

    did that help ? let me know.
    _________________

    CityEngine Machinist

    * YOUTUBE CHANNEL : www.youtube.com/channel/UCNS4TLgToEDQiH9pi06ofOA
    * tutorial videos : http://forums.arcgis.com/threads/648...URCES-FAQ-HELP
    * Please use the rating buttons on the right side !

  3. #3
    Robert Hexter
    Join Date
    Mar 2012
    Posts
    78
    Points
    5
    Answers Provided
    1


    0

    Default Re: Why does the console not throw back exception stacks? am i missing something? r11

    nope nothing gets pushed into the log either..

    simple:

    ce=CE()
    selection=ce.selections()

    execute.. in the console
    there's no feedback, nothing to the log either its silent

    put it in a script import it and execute nothing in the log either..

  4. #4
    Matthias Buehler

    Join Date
    Oct 2011
    Posts
    1,676
    Points
    438
    Answers Provided
    140


    0

    Default Re: Why does the console not throw back exception stacks? am i missing something? r11

    well, that's because you're just storing the names of the selected objects in a variable called selection. that DOES not create any output. you'd have to print it.

    btw. I usually never code in the console, better in a file. for this, right-click on your project's scripts folder, create new Python Module of the 'main' type. You can execute the code directly via F9 then.

    ok ? hope this helps !
    _________________

    CityEngine Machinist

    * YOUTUBE CHANNEL : www.youtube.com/channel/UCNS4TLgToEDQiH9pi06ofOA
    * tutorial videos : http://forums.arcgis.com/threads/648...URCES-FAQ-HELP
    * Please use the rating buttons on the right side !

  5. #5
    Robert Hexter
    Join Date
    Mar 2012
    Posts
    78
    Points
    5
    Answers Provided
    1


    0

    Default Re: Why does the console not throw back exception stacks? am i missing something? r11

    Quote Originally Posted by matthiasbuehler View Post
    well, that's because you're just storing the names of the selected objects in a variable called selection. that DOES not create any output. you'd have to print it.

    Incorrect,that errors, there is a difference between:

    ce.selections() which should error and spew a stacktrace
    and
    ce.selection() which would collect the selection in a variable that would print if printed

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts