Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

Shortcuts to run julia code #8

Open
zhangliye opened this issue Mar 8, 2016 · 5 comments
Open

Shortcuts to run julia code #8

zhangliye opened this issue Mar 8, 2016 · 5 comments

Comments

@zhangliye
Copy link

I transferred from Juno.I start using JuliaDT for my daily work.
I think the shortcuts to run the julia code are convenient. This function is in the "Run" menu of PyDev.

.

@aviks
Copy link
Contributor

aviks commented Mar 18, 2016

Hi @zhangliye : are you talking about keyboard shortcuts?

@zhangliye
Copy link
Author

Yes.
I am waiting for the next version of JuliaDT. It is very convenient to use. I use the debugger developed by toivoh, and it can work with JuliaDT.
( https://github.com/toivoh/Debug.jl )

@ViralBShah
Copy link
Member

A real debugger is almost ready too, and we will soon start working on Eclipse support too.

@zerocewl
Copy link

@zhangliye
can you please add a short description:

  1. how you added your custom keyboard shortcuts
  2. how you used the debug pkg with juliaDT

thx

@zhangliye zhangliye changed the title shortcuts to run julia code Shortcuts to run julia code May 1, 2016
@zhangliye
Copy link
Author

  1. In PyDev, just press Ctr+F11 to run the current python file, and F11 to run in debug model.
    I cannot find the similar shortcuts in JuliaDT
  2. The debugger for Julia can be found according to the follow URL.
    https://github.com/toivoh/Debug.jl

using Debug
@debug function Fibonacci(f, a, b, e) # debug this function
# create Fibonacci integers
N = 0
F = Int[]
push!(F,1)
push!(F,1)
println("", (b-a)/e )
i = 3
@bp # set the break point here
while true
fn = F[i-1] + F[i-2]
if fn >= (b-a)/e
break
end
push!(F, fn)
capture

    N += 1
    i += 1
    @bp                                                  # set another break point
 end

Then, run the code in JuliaDT, and input commands in the Console window to control the debugging process.

  1. Gallium seems to be the official debugger. But it seems not very friendly to users currently. You can have a try. It would be cool if it is integrated into JuliaDT as convenient as PyDev.
    https://github.com/Keno/Gallium.jl

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants