Command Line
pry -r ./config/app_init_file.rb- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb- load your rails into a pry session
Debugger
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| public class DecisionTree : IEnumerable<DecisionTree>, IEnumerable | |
| { | |
| public int Height { get; private set; } | |
| public int Value { get; private set; } | |
| public DecisionTree Left { get; set; } |
Command Line
pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb - load your rails into a pry sessionDebugger
| appendlist([], X, X). | |
| appendlist([T|H], X, [T|L]) :- appendlist(H, X, L). | |
| permutation([], []). | |
| permutation([X], [X]) :-!. | |
| permutation([T|H], X) :- permutation(H, H1), appendlist(L1, L2, H1), appendlist(L1, [T], X1), appendlist(X1, L2, X). |