namespace QuantConnect
{
public partial class BootCampTask : QCAlgorithm
{
private OrderTicket ticket;
public override void Initialize()
{
SetStartDate(2017, 06, 01);
SetEndDate(2017, 06, 15);
// Select the data you need here
var iwm=AddEquity("IWM",Resolution.Minute);
iwm.SetDataNormalizationMode(DataNormalizationMode.Raw);

}

public override void OnData(Slice data)
{
// Place an order and print the average fill price
ticket= MarketOrder("IWM",100);
}
// Override the base class event handler for order events
public override void OnOrderEvent(OrderEvent orderEvent)
{
// var order = Transactions.GetOrderById(orderEvent.OrderId);
//Console.WriteLine("{0}: {1}: {2}", Time, order.Type, orderEvent);
if(Portfolio.Invested && ticket.Status==OrderStatus.Filled)
{
Debug("aVE PRICE" + Portfolio["IWM"].AveragePrice);
}


}
}
}

I am trying to do the boot camp exercise and am running into run time error. but i cannto figure out which line is causing his. how can i find the error line.

here is the full code.