Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8691325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:06:11+00:00 2026-06-13T00:06:11+00:00

(Sorry, I know that is this is mostly a repeat of John Evan’s question,

  • 0

(Sorry, I know that is this is mostly a repeat of John Evan’s question, but the previous answer must now be outdated.)

I’d like to be able to specify an exitCode and leave the my (vm) program if a certain condition occurs (for debugging purposes only).

Note from the above I cannot import 'dart:builtin', and I can’t find mention of exit() in this context in the API.

(My more detailed situation is that my work involves rather massive detailed output and as I test and debug things I have found it most convenient to just exit(); the program – clearly only appropriate during development.)

Thanks,

_g

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:06:12+00:00Added an answer on June 13, 2026 at 12:06 am

    Further searching has shown that the required support is now in the ‘io’ library so this is working for me:

    (Nothing specific to an error code is getting printed out at the console, but that’s ok.)

    import('dart:io');
    
    main() {
        print("just before the exit command...");
        exit(99);
        print("We should not see this")
    }
    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry that I can't find the answer through google - But I know this
Sorry, I know this question is easy, but I don't know how to get
Now, I know that this has been asked, but I need to know how
Hey, sorry for posting this here, I know that this question better suites into
Well I know that this question may be asked many times but certainly I've
[I'm sorry that this isn't directly a programming question. But I have recently switched
Sorry if the title is not that specific, but I don't know how else
sorry, i know this lots on this topic, but i couldnt find one where
Sorry, I know this is a very lame question to ask and not of
Sorry in advance everyone for this question as I know the cascading select boxes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.