CLI arguments to run source file

Discussion in 'Basic4ppc Wishlist' started by LineCutter, Jun 5, 2007.

  1. LineCutter

    LineCutter Active Member Licensed User

    It would be nice to be able to start Dbasic.exe with CLI arguments that not only loaded the source file, but ran it in debug mode.

    This would allow the use of alternative editors for the coding (I'm really missing sub folding as the code gets bigger).
  2. Erel

    Erel Administrator Staff Member Licensed User

    You could use an alternative editor if you like.
    Using the Components dialog you can add text files to your code.
    Open your project (which can be with no code at all) with Basic4ppc, and work on the text file (the code file) with your editor.
  3. LineCutter

    LineCutter Active Member Licensed User

    I'm doing that. However, to run/test the file I have to be inside B4P. I know I can pass the filename as an argument, but it's almost as much hassle to save, swap programs & click on run as it is to work direct in B4P.
    (Actually I keep both open & leave a stub in B4P to run the included text file, but that's not really the point here)
  4. Erel

    Erel Administrator Staff Member Licensed User

    Actually I meant that you could leave Basic4ppc open and just run your application from there. Basic4ppc loads the file each time you run your application.
  5. LineCutter

    LineCutter Active Member Licensed User

    Same thing essentially.

    What I was thinking of was one of these text editors that allow you to pass the filename to an executable file from a keyboard shortcut in the text editor.

    e.g. in Notepad++ you'd use F5 to run "DBasic.exe -run myfile.sbp" which would pass the newly saved file to the DBasic in debug mode. I suppose that "DBasic.exe -compilePPC myfile.sbp" would be a handy addition.

    The extra effort in creating the greatest text editor in the world could then be delegated to someone else, allowing you to work on the Form designer & compiler.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice