<?xml version="1.0" encoding="us-ascii"?><InstanceReport xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Version>2.4.0.8</Version><ReportLongName>109 - Disclosure - Debt arrangements</ReportLongName><DisplayLabelColumn>true</DisplayLabelColumn><ShowElementNames>false</ShowElementNames><RoundingOption /><HasEmbeddedReports>false</HasEmbeddedReports><Columns><Column FlagID="0"><Id>1</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><LabelSeparator>

</LabelSeparator><CurrencyCode /><FootnoteIndexer /><hasSegments>false</hasSegments><hasScenarios>false</hasScenarios><MCU><KeyName /><CurrencySymbol /><contextRef><ContextID>P01_01_2013To06_30_2013</ContextID><EntitySchema>http://www.sec.gov/CIK</EntitySchema><EntityValue>0001476719</EntityValue><PeriodDisplayName /><PeriodType>duration</PeriodType><PeriodStartDate>2013-01-01T00:00:00</PeriodStartDate><PeriodEndDate>2013-06-30T00:00:00</PeriodEndDate><Segments /><Scenarios /></contextRef><UPS /><CurrencyCode /><OriginalCurrencyCode /></MCU><CurrencySymbol /><Labels><Label Key="CalendarSupplement" Id="0" Label="6 Months Ended" /><Label Key="Calendar" Id="1" Label="Jun. 30, 2013" /></Labels></Column></Columns><Rows><Row FlagID="0"><Id>1</Id><IsAbstractGroupTitle>true</IsAbstractGroupTitle><LabelSeparator>

</LabelSeparator><Level>1</Level><ElementName>us-gaap_DebtDisclosureAbstract</ElementName><ElementPrefix>us-gaap_</ElementPrefix><IsBaseElement>true</IsBaseElement><BalanceType>na</BalanceType><PeriodType>duration</PeriodType><IsReportTitle>false</IsReportTitle><IsSegmentTitle>false</IsSegmentTitle><IsCalendarTitle>false</IsCalendarTitle><IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow><IsEquityAdjustmentRow>false</IsEquityAdjustmentRow><IsBeginningBalance>false</IsBeginningBalance><IsEndingBalance>false</IsEndingBalance><IsReverseSign>false</IsReverseSign><FootnoteIndexer /><Cells><Cell FlagID="0" ContextID="" UnitID=""><Id>1</Id><IsNumeric>false</IsNumeric><IsRatio>false</IsRatio><DisplayZeroAsNone>false</DisplayZeroAsNone><NumericAmount>0</NumericAmount><RoundedNumericAmount>0</RoundedNumericAmount><NonNumbericText /><FootnoteIndexer /><CurrencyCode /><CurrencySymbol /><IsIndependantCurrency>false</IsIndependantCurrency><ShowCurrencySymbol>false</ShowCurrencySymbol><DisplayDateInUSFormat>false</DisplayDateInUSFormat></Cell></Cells><ElementDataType>xbrli:stringItemType</ElementDataType><SimpleDataType>string</SimpleDataType><IsTotalLabel>false</IsTotalLabel><UnitID>0</UnitID><Label>Debt Disclosure [Abstract]</Label></Row><Row FlagID="0"><Id>2</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><LabelSeparator>

</LabelSeparator><Level>2</Level><ElementName>us-gaap_DebtDisclosureTextBlock</ElementName><ElementPrefix>us-gaap_</ElementPrefix><IsBaseElement>true</IsBaseElement><BalanceType>na</BalanceType><PeriodType>duration</PeriodType><IsReportTitle>false</IsReportTitle><IsSegmentTitle>false</IsSegmentTitle><IsCalendarTitle>false</IsCalendarTitle><IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow><IsEquityAdjustmentRow>false</IsEquityAdjustmentRow><IsBeginningBalance>false</IsBeginningBalance><IsEndingBalance>false</IsEndingBalance><IsReverseSign>false</IsReverseSign><PreferredLabelRole>label</PreferredLabelRole><FootnoteIndexer /><Cells><Cell FlagID="0" ContextID="P01_01_2013To06_30_2013" UnitID=""><Id>1</Id><IsNumeric>false</IsNumeric><IsRatio>false</IsRatio><DisplayZeroAsNone>false</DisplayZeroAsNone><NumericAmount>0</NumericAmount><RoundedNumericAmount>0</RoundedNumericAmount><NonNumbericText>              &lt;table border="0" style="clear:both;width:100%; table-layout:fixed;"&gt;  &lt;tr&gt;  &lt;td&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;/table&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif "&gt;  &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0in 0in 0pt; FONT-SIZE: 10pt"&gt;  &lt;table style="clear:both;MARGIN-TOP: 0pt; FONT: 10pt Times New Roman, Times, Serif; MARGIN-BOTTOM: 0pt"   cellspacing="0" cellpadding="0" width="100%"&gt;  &lt;tr style="MARGIN: 0in; VERTICAL-ALIGN: top"&gt;  &lt;td style="TEXT-INDENT: 0in; MARGIN: 0in; WIDTH: 0.25in"&gt;  &lt;div&gt;&lt;strong&gt;4.&lt;/strong&gt;&lt;/div&gt;  &lt;/td&gt;  &lt;td style="TEXT-ALIGN: justify"&gt;  &lt;div&gt;&lt;strong&gt;Debt arrangements&lt;/strong&gt;&lt;/div&gt;  &lt;/td&gt;  &lt;/tr&gt;  &lt;/table&gt;  &lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;&lt;strong&gt;&amp;#160;&lt;/strong&gt;&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;On May 10, 2013 and June 11, 2013, CBS completed  the issuance of $&lt;font style=" FONT-SIZE: 10pt"&gt;7,000,000&lt;/font&gt;  and $&lt;font style=" FONT-SIZE: 10pt"&gt;3,000,000&lt;/font&gt;, respectively,  in aggregate principal amount of its senior convertible notes (the  &amp;#8220;Convertible Notes&amp;#8221;) due &lt;font style=" FONT-SIZE: 10pt"&gt;May 10, 2018&lt;/font&gt; and &lt;font style=" FONT-SIZE: 10pt"&gt;June 11, 2018&lt;/font&gt;, respectively (individually  and collectively, the &amp;#8220;Maturity Date&amp;#8221;) in a private  offering to certain accredited investors.&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;&amp;#160;&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;The Convertible Notes bear interest at an annual  rate of &lt;font style=" FONT-SIZE: 10pt"&gt;6.5&lt;/font&gt;% (&lt;font style=" FONT-SIZE: 10pt"&gt;18.0&lt;/font&gt;% per annum if there is an event of  default under the Convertible Notes) payable quarterly in arrears  on each January 1, April 1, July 1 and October 1. Interest expense  related to the Convertibles Notes for the three and six months  ended June 30, 2013 was approximately $&lt;font style=" FONT-SIZE: 10pt"&gt;&lt;font style=" FONT-SIZE: 10pt"&gt;75,000&lt;/font&gt;&lt;/font&gt;.&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;&amp;#160;&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;On the Maturity Date or earlier acceleration as  described below, the Convertible Notes will be convertible into  shares of CBS common stock based on a conversion price of $&lt;font  style=" FONT-SIZE: 10pt"&gt;1.55&lt;/font&gt; per share (the  &amp;#8220;Conversion Price&amp;#8221;). CBS may determine to convert  accrued interest into CBS common stock by issuing that number of  shares of common stock equal to the amount of interest to be paid  divided by the Conversion Price, provided that there has been no  failure of any of the conditions to such conversion set forth in  the Notes (an &amp;#8220;Equity Conditions Failure&amp;#8221;) on any day  during the period commencing 20 trading days immediately prior to  such date of determination unless waived by a Note holder.  Otherwise the Company will be required to make interest payments in  cash.&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;&amp;#160;&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;Fractional shares that would otherwise be issuable  upon the conversion of a Note or the payment of interest in shares  will be rounded up to the next whole share in the case of a  conversion and rounded to the nearest whole share in the case of an  interest payment in shares.&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;&amp;#160;&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;All of the conversion rights discussed above are  subject to ownership limitations set forth in the Notes, which  prohibit any holder from receiving shares under the Notes, by way  of conversion, the payment of interest in shares or otherwise, in  an amount that would cause that holder to beneficially own more  than &lt;font style=" FONT-SIZE: 10pt"&gt;9.99&lt;/font&gt;% of the outstanding  shares of common stock after giving effect to the issuance (the  &amp;#8220;Ownership Limitation&amp;#8221;).&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;&amp;#160;&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;&lt;u&gt;Prepayment and acceleration of  maturity&lt;/u&gt;&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;&amp;#160;&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;At any time after the first anniversary of the  date on which a Note was issued and provided that no Equity  Conditions Failure exists, but no more often than once during any  30-day period, the Company may prepay the unpaid principal balance  and accrued interest and late charges (collectively, the  &amp;#8220;Conversion Amount&amp;#8221;) then remaining under the Note, in  whole or in part, subject to a &lt;font style=" FONT-SIZE: 10pt"&gt;  25&lt;/font&gt;% prepayment premium. If, however, the amount that the  Company elects to prepay exceeds the amount that the holder could  convert after taking into account the Ownership Limitation, then  the amount of the prepayment will be limited to such lesser amount.  &lt;font style="COLOR: black"&gt;The Company&amp;#8217;s election to prepay a  Note will be cancelled if, unless waived by a holder, an Equity  Conditions Failure occurs at any time prior to the date set for  prepayment.&lt;/font&gt;&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;&amp;#160;&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;The Notes permit their holders to accelerate the  Company&amp;#8217;s repayment obligations if there is a change in  control (as defined in the Notes) of the Company at any time before  the maturity dates of the Notes.&amp;#160;&lt;font style=" FONT-SIZE: 10pt"&gt;If a change in control occurs on or before the  third anniversary of a Note&amp;#8217;s issuance date, the Company  would be obligated to pay a cash premium on the unpaid principal  balance to the holder of that Note equal to 15.0% if the change in  control occurs on or before the first anniversary of the issuance  date, 10.0% if the change in control occurs between the first and  second anniversaries of the issuance date, and 5.0% if the change  in control occurs between the second and third anniversaries of the  issuance date.&lt;/font&gt; &amp;#160;&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;&amp;#160;&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;Each Note contains events of default that are  customary for this type of instrument. Upon an event of default and  regardless of whether such event of default has been cured, the  holder will have the right to accelerate all or a portion of the  outstanding balance due under its Note and will also be entitled to  exercise those rights available to an unsecured creditor of the  Company.&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt"&gt;  &amp;#160;&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;&lt;u&gt;Mandatory Conversion&lt;/u&gt;&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;&amp;#160;&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;The Company has the right to require the holder of  a Note to convert the Conversion Amount remaining under the Note  if, at any time after the first anniversary of the issuance date,  (i) the dollar volume-weighted average price for the common stock  on the principal market on which the common stock is then listed or  traded exceeds 200% of the Conversion Price for 30 consecutive  trading days, and (ii) no equity conditions failure then exists,  although the Company is entitled to effect only one mandatory  conversion during any 20 consecutive trading days. Shares delivered  in connection with a mandatory conversion must be accompanied by a  payment in cash equal to the amount of any accrued and unpaid  interest with respect to the amount being converted, plus all  accrued and unpaid late charges with respect to such amount.&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;&amp;#160;&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;&lt;u&gt;Debt Issuance Costs&lt;/u&gt;&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;&amp;#160;&lt;/div&gt;    &lt;div style="clear:both; FONT-FAMILY:Times New Roman;FONT-SIZE: 10pt;MARGIN: 0pt 0px; FONT: 10pt Times New Roman, Times, Serif"   align="justify"&gt;Debt issuance costs assocated with this  arrangement amounted to $&lt;font style=" FONT-SIZE: 10pt"&gt;916,452&lt;/font&gt;. These costs are being amortized  rateably over the period ending with the maturity of the Notes  issued in the second closing. Amortization expense for the three  and six month period ended June 30, 2013 was approximately $&lt;font  style=" FONT-SIZE: 10pt"&gt;&lt;font style=" FONT-SIZE: 10pt"&gt;8,000&lt;/font&gt;&lt;/font&gt;.&lt;/div&gt;  &lt;/div&gt;        </NonNumbericText><FootnoteIndexer /><CurrencyCode /><CurrencySymbol /><IsIndependantCurrency>false</IsIndependantCurrency><ShowCurrencySymbol>false</ShowCurrencySymbol><DisplayDateInUSFormat>false</DisplayDateInUSFormat></Cell></Cells><ElementDataType>nonnum:textBlockItemType</ElementDataType><SimpleDataType>na</SimpleDataType><ElementDefenition>The entire disclosure for information about short-term and long-term debt arrangements, which includes amounts of borrowings under each line of credit, note payable, commercial paper issue, bonds indenture, debenture issue, own-share lending arrangements and any other contractual agreement to repay funds, and about the underlying arrangements, rationale for a classification as long-term, including repayment terms, interest rates, collateral provided, restrictions on use of assets and activities, whether or not in compliance with debt covenants, and other matters important to users of the financial statements, such as the effects of refinancing and noncompliance with debt covenants.</ElementDefenition><ElementReferences>Reference 1: http://www.xbrl.org/2003/role/presentationRef

 -Publisher FASB

 -Name Accounting Standards Codification

 -Topic 505

 -SubTopic 10

 -Section 50

 -Paragraph 3

 -URI http://asc.fasb.org/extlink&amp;oid=6928386&amp;loc=d3e21475-112644



Reference 2: http://www.xbrl.org/2003/role/presentationRef

 -Publisher SEC

 -Name Regulation S-X (SX)

 -Number 210

 -Section 02

 -Paragraph 19, 20, 22

 -Article 5



Reference 3: http://www.xbrl.org/2003/role/presentationRef

 -Publisher FASB

 -Name Accounting Standards Codification

 -Topic 210

 -SubTopic 10

 -Section S99

 -Paragraph 1

 -Subparagraph (SX 210.5-02.19,20,22)

 -URI http://asc.fasb.org/extlink&amp;oid=6877327&amp;loc=d3e13212-122682



</ElementReferences><IsTotalLabel>false</IsTotalLabel><UnitID>0</UnitID><Label>Debt Disclosure [Text Block]</Label></Row></Rows><Footnotes /><IsEquityReport>false</IsEquityReport><ReportName>Debt arrangements</ReportName><MonetaryRoundingLevel>UnKnown</MonetaryRoundingLevel><SharesRoundingLevel>UnKnown</SharesRoundingLevel><PerShareRoundingLevel>UnKnown</PerShareRoundingLevel><ExchangeRateRoundingLevel>UnKnown</ExchangeRateRoundingLevel><HasCustomUnits>true</HasCustomUnits><IsEmbedReport>false</IsEmbedReport><IsMultiCurrency>false</IsMultiCurrency><ReportType>Sheet</ReportType><RoleURI>http://www.crumbs.com/role/DebtArrangements</RoleURI><NumberOfCols>1</NumberOfCols><NumberOfRows>2</NumberOfRows></InstanceReport>
